Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }