Exemplo n.º 1
0
 public void UpdateTurnIndicator()
 {
     if (IsActivePlayerBar)
     {
         if (GameManager.instance.effectManager.ActiveEffect == ActiveEffectTypes.UnitCommand ||
             GameManager.instance.effectManager.ActiveEffect == ActiveEffectTypes.UnitUseSpeed ||
             GameManager.instance.effectManager.ActiveEffect == ActiveEffectTypes.UnitUseDisengageSpeed)
         {
             unitCommandUI.gameObject.SetActive(true);
             unitCommandUI.RefreshCommandBar();
         }
         else
         {
             unitCommandUI.gameObject.SetActive(false);
         }
     }
     else
     {
         unitCommandUI.gameObject.SetActive(false);
     }
     cardListsUI.gameObject.SetActive(false);
     turnIndicator.SetActive(IsActivePlayerBar);
 }
 public void DeleteEnchantment()
 {
     unit.DeleteEnchantment(enchantment);
     unitCommandUI.RefreshCommandBar();
 }