コード例 #1
0
 private bool onGameTimeOut(IslandTargetsEvents.TargetGameTimeOut evt)
 {
     gameState = TargetsGameState.Idle;
     gameTimer.Stop();
     CoroutineRunner.Start(setClockTimerVisible(isVisible: false, TimeoutDelay), this, "setClockTimerVisible");
     ClockTowerAnimator.speed = 1f;
     if (ClockController != null)
     {
         ClockController.StartClock();
     }
     ClockTowerAnimator.SetTrigger("TimeOut");
     if (animatorFloatingClock != null && !string.IsNullOrEmpty(ClockTriggerFlyBack))
     {
         animatorFloatingClock.ResetTrigger(ClockTriggerFlyOut);
         animatorFloatingClock.SetTrigger(ClockTriggerFlyBack);
     }
     CoroutineRunner.Start(setScarecrowVisible(isVisible: true, TimeoutDelay), this, "setScarecrowVisible");
     for (int i = 0; i < SideScoreboards.Length; i++)
     {
         SideScoreboards[i].SetState(IslandTargetsSideScoreboard.SideScoreboardState.RoundFail);
     }
     CoroutineRunner.Start(resetScoreboardState(RoundFailResetDelay), this, "ResetScoreboardState");
     if (!string.IsNullOrEmpty(LoseMusicName) && !isZoneTransitioning)
     {
         EventManager.Instance.PostEvent(MusicEventName, EventAction.SetSwitch, LoseMusicName, createCoMusicTarget);
         isPlayingLoseMusic = true;
     }
     if (!isZoneTransitioning)
     {
         EventManager.Instance.PostEvent(LoseSFXTrigger, EventAction.PlaySound, base.gameObject);
         isPlayingLoseSFXTrigger = true;
     }
     CoroutineRunner.Start(SwitchBackToDefautMusic(ReturnToEvergreenMusicWait), this, "SwitchToEvergreenMusic");
     if (isPlayingLowTimeSFX)
     {
         EventManager.Instance.PostEvent(LowTimeSFXTrigger, EventAction.StopSound, base.gameObject);
         isPlayingLowTimeSFX = false;
     }
     InvokeRepeating("displayGameStartCountdown", 0f, 1f);
     return(false);
 }
コード例 #2
0
 private bool onGameTimeOut(IslandTargetsEvents.TargetGameTimeOut evt)
 {
     RemoveListeners();
     CoroutineRunner.Start(AnimateOutOfView(), this, "TargetAnimateOut");
     return(false);
 }