Пример #1
0
 public void LaunchUFO()
 {
     if (count - leaveSeconds == 1)
     {
         count = leaveSeconds;
         GameObject ufo = ufoFactory.GetUFO(round);
         Debug.Log(ufo);
         ufos.Add(ufo);
         if (actionManager.If_Active == 1)
         {
             actionManager.addRandomAction(ufo);
         }
         else
         {
             physisManager.addRandomAction(ufo);
         }
     }
 }
Пример #2
0
 public void LaunchDisk()    //每秒自动发射飞碟
 {
     if (count - leaveSeconds == 1)
     {
         count = leaveSeconds;
         for (int i = 0; i < 3; i++)
         {
             GameObject disk = diskFactory.GetDisk(round);
             Debug.Log(disk);
             disks.Add(disk);
             if (actionManager.If_Active == 1)
             {
                 actionManager.addRandomAction(disk);
             }
             else
             {
                 physisManager.addRandomAction(disk);
             }
         }
     }
 }