protected override void OnTerminate() { Active = null; this.endTurnButton.PointerUp -= OnEndTurnButtonPointerUp; this.swapWeaponButton.PointerUp -= OnSwapWeaponButtonPointerUp; this.swapWeaponButton.PointerEnter -= OnSwapWeaponButtonPointerEnter; this.swapWeaponButton.PointerExit -= OnSwapWeaponButtonPointerExit; }
protected override void OnInitialize() { Active = this; this.endTurnButton.PointerUp += OnEndTurnButtonPointerUp; this.swapWeaponButton.PointerUp += OnSwapWeaponButtonPointerUp; this.swapWeaponButton.PointerEnter += OnSwapWeaponButtonPointerEnter; this.swapWeaponButton.PointerExit += OnSwapWeaponButtonPointerExit; }
public void DisableEndTurnButton() { this.endTurnButton.Active = false; }
public void EnableEndTurnButton() { this.endTurnButton.Active = true; }