Exemplo n.º 1
0
 private void Update()
 {
     if (IsWaitingStart)
     {
         if (_gridBhv.CanStart())
         {
             GameStart();
         }
     }
     if (State == FightState.PlayerTurn)
     {
         if (!_buttonWeapon1.Disabled && PlayerBhv.Pa < PlayerBhv.Character.Weapons[0].PaNeeded)
         {
             _buttonWeapon1.DisableButton();
         }
         if (!_buttonWeapon2.Disabled && PlayerBhv.Pa < PlayerBhv.Character.Weapons[1].PaNeeded)
         {
             _buttonWeapon2.DisableButton();
         }
         if (!_buttonSkill1.Disabled && PlayerBhv.Pa < PlayerBhv.Character.Skills[0].PaNeeded)
         {
             _buttonSkill1.DisableButton();
         }
         if (!_buttonSkill2.Disabled && PlayerBhv.Pa < PlayerBhv.Character.Skills[1].PaNeeded)
         {
             _buttonSkill2.DisableButton();
         }
     }
 }