コード例 #1
0
        protected override void OnTerminate()
        {
            Active = null;

            this.endTurnButton.PointerUp       -= OnEndTurnButtonPointerUp;
            this.swapWeaponButton.PointerUp    -= OnSwapWeaponButtonPointerUp;
            this.swapWeaponButton.PointerEnter -= OnSwapWeaponButtonPointerEnter;
            this.swapWeaponButton.PointerExit  -= OnSwapWeaponButtonPointerExit;
        }
コード例 #2
0
        protected override void OnInitialize()
        {
            Active = this;

            this.endTurnButton.PointerUp       += OnEndTurnButtonPointerUp;
            this.swapWeaponButton.PointerUp    += OnSwapWeaponButtonPointerUp;
            this.swapWeaponButton.PointerEnter += OnSwapWeaponButtonPointerEnter;
            this.swapWeaponButton.PointerExit  += OnSwapWeaponButtonPointerExit;
        }
コード例 #3
0
 public void DisableEndTurnButton()
 {
     this.endTurnButton.Active = false;
 }
コード例 #4
0
 public void EnableEndTurnButton()
 {
     this.endTurnButton.Active = true;
 }