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

        myAttack.Attacker            = enemy.thename;
        myAttack.Type                = "Enemy";
        myAttack.AttackersGameObject = this.gameObject;
        myAttack.AttackersTarget     = BSM.ProtagsInBattle[Random.Range(0, BSM.ProtagsInBattle.Count)];
        int rand = Random.Range(0, enemy.MeleeAttacks.Count);

        myAttack.ChooseAttack = enemy.MeleeAttacks[rand];


        BSM.CollectAction(myAttack);
    }