Ejemplo n.º 1
0
    void ApplyDamage()
    {
        //get this and other pokemon, based if is player or enemy turn
        PokemonModel thisPokemon = isPlayer ? fightManager.currentPlayerPokemon : fightManager.currentEnemyPokemon;

        otherPokemon = isPlayer ? fightManager.currentEnemyPokemon : fightManager.currentPlayerPokemon;

        //apply damage and effect
        otherPokemon.GetDamage(fightManager.SkillUsed, thisPokemon, out efficiencyText);
    }