Beispiel #1
0
 public override void TakeDamage(double DamageToTake, Player playerThatDeliveredDamage)
 {
     m_LastPlayerThatDeliveredDamage = playerThatDeliveredDamage;
     ((Sound)DataAssetCache.Instance.GetAsset(typeof(Sound), "AsteroidHit")).PlayAnAvailableCopy();
     base.TakeDamage(DamageToTake, playerThatDeliveredDamage);
 }
Beispiel #2
0
		public void Respawn()
		{
			m_LastPlayerToShot = null;
			Random rand = new Random();
			Position = new Vector2(rand.NextDouble() * GameWidth, rand.NextDouble() * GameHeight);
			m_Velocity = Vector2.Zero;
		}
Beispiel #3
0
        public virtual void TakeDamage(double DamageToTake, Player playerThatDeliveredDamage)
		{
			Damage = Damage + DamageToTake;
		}