Пример #1
0
    public void ChallengePlayer(Enemy_Behaviour enemy)
    {
        int inc_damage   = enemy.damage;
        int given_damage = (int)playerstats.Firepower / 5;

        player.GetComponent <PlayerBehav>().RecieveDamage(-(inc_damage - (int)playerstats.Endurance / 5));
        enemy.RecieveDamage(given_damage);
    }
Пример #2
0
    public void Attack(Enemy_Behaviour enemy)
    {
        int given_damage = (int)playerstats.Firepower / 5;

        enemy.RecieveDamage(given_damage);
    }