internal void RemoveProjectile(Projectile projectile) { toDestroy.Add(projectile); //Console.WriteLine(Projectiles); }
public void Damage(Projectile projectile) { Health -= (int)projectile.Damage; if(Health <= 0) { //player got killed by projectile.Owner //Life-- //OTHER player got ++ Kills //THIS player got ++ Deaths //Play death animation && death-sound //respawn! Deaths++; projectile.Owner.Kills++; Life--; if (Life <= 0) { //TODO!! //Game Over } } }
internal void AddProjectile(Projectile projectile) { toAdd.Add(projectile); //Console.WriteLine(Projectiles); }