public void TryPrepare() { try { CheckIfCanBePrepared(); } catch (Exception e) { MessageLogger.DebugLog("Umiejetność " + Name + " nie może zostać użyta:"); MessageLogger.DebugLog("\t" + e.Message); return; } // Game.HexMapDrawer.RemoveAllHighlights(); Active.Clean(); Use(); }
public void Select() { Active.Clean(); Stats.Instance.UpdateCharacterStats(this); MainHPBar.Instance.UpdateHPAmount(this); Active.CharacterOnMap = this; UI.CharacterUI.Abilities.Instance.UpdateButtons(); UI.CharacterUI.Effects.Instance.UpdateButtons(); // List<GameObject> characterButtons = new List<GameObject>(CharacterAbilities.Instance.Buttons); // characterButtons.AddRange(new List<GameObject>(CharacterEffects.Instance.Buttons)); // Active.Buttons = characterButtons; if (Active.GamePlayer != Owner) { return; } PrepareAttackAndMove(); }