Ejemplo n.º 1
0
        // todo: move to character, AI should depend on boss.
        private void enemyAction()
        {
            if (_enemy.IsDead())
            {
                return;
            }
            List <string> words = _boardGame.GetSelectableWords();

            if (words.Count > 0)
            {
                StartCoroutine(_boardGame.EmulateWordActivation(words[0]));
            }
            else
            {
                _boardGame.ExtraAction();
                words = _boardGame.GetSelectableWords();
                StartCoroutine(_boardGame.EmulateWordActivation(words[0]));
            }
        }
Ejemplo n.º 2
0
        // todo: move to character, AI should depend on boss.
        public void enemyAction(string word)
        {
            if (_enemy.IsDead())
            {
                return;
            }

            List <string> words = _boardGame.GetSelectableWords();

            StartCoroutine(_boardGame.EmulateWordActivation(word));
        }