|
@@ -99,8 +99,13 @@ public class EnemyCreater : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- pos = portals[singleCreateEnemy.PortalsID].transform.position;
|
|
|
|
|
- if(portals[singleCreateEnemy.PortalsID].transform.localScale.x > 0)
|
|
|
|
|
|
|
+ GameObject portal = portals[singleCreateEnemy.PortalsID];
|
|
|
|
|
+ if (!portal.activeSelf)
|
|
|
|
|
+ {
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
+ pos = portal.transform.position;
|
|
|
|
|
+ if(portal.transform.localScale.x > 0)
|
|
|
{
|
|
{
|
|
|
pos.x -= 1;
|
|
pos.x -= 1;
|
|
|
}
|
|
}
|