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 Start() { GlobalVars.Instance.DropedWeaponAllClear(); GlobalVars.Instance.ApplyAudioSource(); GlobalVars.Instance.SwitchFlashbang(bVis: false, Vector3.zero); InitializeFirstPerson(); battleChat = GetComponent <BattleChat>(); BrickManManager.Instance.OnStart(); VfxOptimizer.Instance.SetupCamera(); delayLoad = true; deltaTime = 0f; clockBomb = InstalledClockBomb.GetComponent <InstalledBomb>(); endCode = -1; endCodeDelta = 0f; showRoundMessage = true; if (MyInfoManager.Instance.Slot < 8) { bRedTeam = true; } else { bRedTeam = false; } GameObject gameObject = GameObject.Find("Main"); if (gameObject != null) { ShooterTools component = gameObject.GetComponent <ShooterTools>(); if (component != null) { component.DoBuff(); } } }