예제 #1
0
 /// <summary>
 /// Adds the parameter as a GameOver event invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddGameOverInvoker(DontTakeTheLastTeddy invoker)
 {
     gameOverInvokers.Add(invoker);
     foreach (UnityAction <PlayerName, Difficulty, Difficulty> listener in gameOverListeners)
     {
         invoker.AddGameOverListener(listener);
     }
 }
예제 #2
0
 /// <summary>
 /// Adds the parameter as a TakeTurn event invoker
 /// </summary>
 /// <param name="invoker">invoker</param>
 public static void AddTakeTurnInvoker(DontTakeTheLastTeddy invoker)
 {
     takeTurnInvokers.Add(invoker);
     foreach (UnityAction <PlayerName, Configuration> listener in takeTurnListeners)
     {
         invoker.AddTakeTurnListener(listener);
     }
 }
예제 #3
0
 public static void AddTestOverInvoker(DontTakeTheLastTeddy invoker)
 {
     testOverInvokers.Add(invoker);
     foreach (UnityAction listener in testOverListeners)
     {
         invoker.AddTestOverListener(listener);
     }
 }
예제 #4
0
 public static void AddGameStartingInvoker(DontTakeTheLastTeddy invoker)
 {
     gameStartingInvokers.Add(invoker);
     foreach (UnityAction listener in gameStartingListeners)
     {
         invoker.AddGameStartingListener(listener);
     }
 }
예제 #5
0
 public static void AddStartGameInvoker(DontTakeTheLastTeddy invoker)
 {
     startGameInvokers.Add(invoker);
     foreach (UnityAction listener in startGameListeners)
     {
         invoker.AddStartGameListener(listener);
     }
 }