예제 #1
0
 public void EnemyBack()
 {
     GameObject[] enemyFours = new GameObject[3];
     enemyFours = GameObject.FindGameObjectsWithTag("enemy4");
     for (int i = 0; i < enemyFours.Length; i++)
     {
         enemyFours[i].GetComponent <Transform>().rotation = GalagaHelper.enemyFourOrigRotation;
         if (i > 0)
         {
             SimplePool.Despawn(enemyFours[i]);
             enemyFours[i].transform.parent = null;
         }
     }
     GalagaHelper.RemoveScorpionPaths();
     GameObject.FindGameObjectWithTag("MainFormation").GetComponent <MainEnemyFormation>().isEnemy1Done = true;
     GalagaHelper.isScorpionAttackOn = false;
     //Debug.Log("Enemy 4 orig rotation".Colored(Colors.red));
 }