Пример #1
0
 private static void LoadSceneInternal()
 {
     Notifier.SendEventNotification(OnLoadScene);
     MatchStateManager.Clear();
 }
Пример #2
0
        // Resumes the Match state.
        public static void ResumeMatch()
        {
            SetState(MatchState.MAIN);

            Notifier.SendEventNotification(OnMatchResume);
        }
Пример #3
0
 // Resets the Match state.
 public static void ResetMatch()
 {
     SetState(MatchState.BEGIN);
     Notifier.SendEventNotification(OnMatchReset);
 }
Пример #4
0
        public static void EndMatch()
        {
            SetState(MatchState.END);

            Notifier.SendEventNotification(OnMatchEnd);
        }
Пример #5
0
        // Pauses the Match state.
        public static void PauseMatch()
        {
            SetState(MatchState.PAUSE);

            Notifier.SendEventNotification(OnMatchPause);
        }
Пример #6
0
        // Starts the Match.
        public static void StartMatch()
        {
            SetState(MatchState.MAIN);

            Notifier.SendEventNotification(OnMatchStart);
        }
Пример #7
0
        // Signals the period before the match starts.
        public static void StartPreMatch()
        {
            SetState(MatchState.BEGIN);

            Notifier.SendEventNotification(OnPreMatchStart);
        }
Пример #8
0
        public static void ExitMatch()
        {
            Notifier.SendEventNotification(OnMatchExit);

            Clear();
        }
Пример #9
0
 public void TriggerEvent <T>(EventHandler <T> handler, T args)
 {
     Notifier.SendEventNotification(handler, args);
 }
Пример #10
0
 public void TriggerEvent(EventHandler handler)
 {
     Notifier.SendEventNotification(handler);
 }