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)); }
void Start() { Died.AddListener(gameover); }