Esempio n. 1
0
    public void PlayerTurnAttack(int monsterNum)
    {
        targetMonsterIndex = monsterNum;
        currentTurn        = CURRENT_TURN.PLAYER;
        playerAttackCount += 1;

        MonsterAction monsterAction = monsters[targetMonsterIndex].GetComponent <MonsterAction>();

        string playerName  = playerAction.CharacterName();
        string monsterName = monsterAction.CharacterName();

        battleMsseage = string.Format("{0}の{1}への攻撃", playerName, monsterName);
        attacker      = playerAction;
        defender      = monsterAction;
        battleProcess = BATTLE_PROCESS.ATTACKING_MESSAGE;
    }
Esempio n. 2
0
    public void MonsterTurnAttack()
    {
        currentTurn = CURRENT_TURN.MONSTER;

        battleMenu.ControllBasicCommandButtons(false);

        int monsterIndex = Random.Range(0, monsters.Count);

        MonsterAction monsterAction = monsters[monsterIndex].GetComponent <MonsterAction>();

        string monsterName = monsterAction.CharacterName();

        battleMsseage = string.Format("{0}の攻撃", monsterName);
        attacker      = monsterAction;
        defender      = playerAction;
        battleProcess = BATTLE_PROCESS.ATTACKING_MESSAGE;
    }