Exemple #1
0
    void BattleWithTarget(GameObject enemy)
    {
        EnemyCharacter enemyChar = enemy.GetComponent <EnemyCharacter>();

        UIManager.Instance.UpdateTargetEnemyInfo(enemyChar);

        foreach (PlayerCharacter pc in PartyManager.Instance.playerPartyList)
        {
            pc.State = Character.CharacterState.BATTLE;
        }

        enemyChar.EnterBattle();
        //enemy.GetComponent<EnemyCharacter>().State = Character.CharacterState.BATTLE;
    }