/// <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); } }
/// <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); } }
public static void AddTestOverInvoker(DontTakeTheLastTeddy invoker) { testOverInvokers.Add(invoker); foreach (UnityAction listener in testOverListeners) { invoker.AddTestOverListener(listener); } }
public static void AddGameStartingInvoker(DontTakeTheLastTeddy invoker) { gameStartingInvokers.Add(invoker); foreach (UnityAction listener in gameStartingListeners) { invoker.AddGameStartingListener(listener); } }
public static void AddStartGameInvoker(DontTakeTheLastTeddy invoker) { startGameInvokers.Add(invoker); foreach (UnityAction listener in startGameListeners) { invoker.AddStartGameListener(listener); } }