protected override void Start()
    {
        base.Start();
        gameController = GameController.instance;
        WatchForGamePause();

        // the movement handler needs access to things like the game controller,
        // hence it being initialized here
        movementHandler = new BattleMovementModule();
        movementHandler.Init(this);
        panelCurrentlyOn = GetPanelCurrentlyOn();

        Died.AddListener(() => gameObject.SetActive(false));
    }
Exemple #2
0
 void Start()
 {
     Died.AddListener(gameover);
 }