示例#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);
 }