コード例 #1
0
    private static void RunRestartables()
    {
        var restartables = FindInterfaces.Find <IRestartable>();

        for (int i = 0; i < restartables.Count; i++)
        {
            restartables[i].Restart();
        }
    }
コード例 #2
0
 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();
    }
コード例 #4
0
 private void InitActors()
 {
     actors = FindInterfaces.Find <ITurnAction>();
 }
コード例 #5
0
 void Start()
 {
     Players = FindInterfaces.Find <ICharacterController>();
     StartGame();
 }