示例#1
0
    void chooseAction()
    {
        if (battle.heroes.Count == 0)
        {
            return;
        }
        HandleTurn myAttack = new HandleTurn();

        myAttack.Attacker          = enemy.nameOfObject;
        myAttack.Type              = "Enemy";
        myAttack.attacksGameObject = this.gameObject;
        myAttack.attackersTarget   = battle.heroes[0];
        battle.collectActions(myAttack);
    }