private static void RunRestartables() { var restartables = FindInterfaces.Find <IRestartable>(); for (int i = 0; i < restartables.Count; i++) { restartables[i].Restart(); } }
private void Awake() { gameStatusHandler = (IGameStatusHandler)FindInterfaces.Find <IGameStatusHandler>().First(); gameStatusHandler.GameStatusChanged += GameStatusHandler_GameStatusChanged; }
private void Awake() { gameStatusHandler = (IGameStatusHandler)FindInterfaces.Find <IGameStatusHandler>().First(); LastWaveEvent = new UnityEvent(); }
private void InitActors() { actors = FindInterfaces.Find <ITurnAction>(); }
void Start() { Players = FindInterfaces.Find <ICharacterController>(); StartGame(); }