Пример #1
0
 public void LaunchDisk()//每秒自动发射飞碟
 {
     if (count - leaveSeconds == 1)
     {
         count = leaveSeconds;
         GameObject disk = diskFactory.GetDisk(round); //从飞碟工厂得到飞碟
         Debug.Log(disk);
         disks.Add(disk);                              //飞碟进入场景
         actionManager.addRandomAction(disk);          //让动作管理者设计轨迹
     }
 }
Пример #2
0
 public void LaunchUFO()
 {
     if (count - leaveSeconds == 1)
     {
         count = leaveSeconds;
         GameObject ufo = ufoFactory.GetUFO(round);
         Debug.Log(ufo);
         ufos.Add(ufo);
         actionManager.addRandomAction(ufo);
     }
 }
 public void LaunchDisk()
 {
     if (count - leaveSeconds == 1)
     {
         count = leaveSeconds;
         GameObject disk = diskFactory.GetDisk();
         Debug.Log(disk);
         disks.Add(disk);
         actionManager.addRandomAction(disk);
     }
 }
Пример #4
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);
             }
         }
     }
 }