public void resetStatistics() { damageCaused = 0; damageReceived = 0; kills = 0; timeDead = 0; deathBy = String.Empty; statusPlayerInGame = StatusPlayerInGame.waitRoundStart; outTerrain = false; }
public void ReceiveDamage(float value) { damageReceived += value; if (life > 0) life -= value; if (life < 0) { life = 0; statusPlayerInGame = StatusPlayerInGame.dead; } }