Beispiel #1
0
 private void OnRoundEnd(int ticket)
 {
     rounding    = true;
     step        = STEP.WAIT;
     count       = 0;
     deltaTime   = 0f;
     preWaitTime = 0f;
     localController.CancelTrain();
     localController.CancelCannon();
     GlobalVars.Instance.DropedWeaponAllClear();
     ZombieVsHumanManager.Instance.ResetGameStuff();
     if (Application.loadedLevelName.Contains("Explosion"))
     {
         GameObject gameObject = GameObject.Find("InstalledClockBomb");
         if (null != gameObject)
         {
             InstalledBomb component = gameObject.GetComponent <InstalledBomb>();
             if (null != component)
             {
                 component.StopClockBombSound();
             }
         }
     }
     MyInfoManager.Instance.RoundEnd(ticket);
 }
 private void MakeZombie()
 {
     if (null != localController)
     {
         localController.CancelCannon();
     }
     if (null != localController)
     {
         localController.CancelTrain();
     }
     int[] usables = new int[1];
     if (null != me)
     {
         EquipCoordinator component = me.GetComponent <EquipCoordinator>();
         if (null != component)
         {
             component.ResetWeaponOnly(usables);
         }
         if (null != localController)
         {
             localController.Infect();
         }
     }
 }