示例#1
0
    void ChooseAction()
    {
        HandleTurn myAttack = new HandleTurn();

        myAttack.attacker          = enemy.theName;
        myAttack.type              = "Enemy";
        myAttack.attacksGameObject = this.gameObject;
        myAttack.attackersTarget   = BSM.heroesInBattle[Random.Range(0, BSM.heroesInBattle.Count)];

        int num = Random.Range(0, enemy.attacks.Count);

        myAttack.choosenAttack = enemy.attacks[num];
        //Debug.Log(this.gameObject + "has choosen"
        //    + myAttack.choosenAttack.attackName +
        //   ", damage output" + myAttack.choosenAttack.attackDamage);

        BSM.CollectActionInformation(myAttack);
    }