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

            if (life < 0)
            {
                life = 0;
                statusPlayerInGame = StatusPlayerInGame.dead;
            }
        }