public override void OnCollide(Node other) { base.OnCollide(other); SmallExplosion x = new SmallExplosion(AbsolutePosition); Root.Instance.Scene.Spawn(x); }
public override void OnCollide(Node other) { base.OnCollide(other); SmallExplosion x = new SmallExplosion(AbsolutePosition); Root.Instance.Scene.Spawn(x); /*if(other is SpaceShip) { SpaceShip ss=(SpaceShip)other; if (ss.Shield.CurrentCharge <= 10) { ss.Battery.CurrentEnergy -= EnergyDamage; if (ss.Battery.CurrentEnergy <= 0) { ss.Battery.CurrentEnergy = 0; ss.ControlsJamed = true; } } }*/ }
public override void OnCollide(Node other) { base.OnCollide(other); SmallExplosion x = new SmallExplosion(AbsolutePosition); Root.Instance.Scene.Spawn(x); if (l != null) { l.Kill = true; l.Attach = null; l = null; } }