public bool CheckColusion(ModelEntity otherEntity) { ModelEntity block = DidEntityCollide(otherEntity); if (block == null) { return(false); } MakeExplosion(block.PO.WorldPosition + block.Position); BlockHitSound.Play(); LogicRef.AddPoints(69); block.Enabled = false; otherEntity.Enabled = false; return(true); }
public void HitByMissile() { TheExplosion.Spawn(Position, 1.5f, 50, 14, 0.2f, 1); ExplodeSound.Play(); Reset(); switch (TheState) { case State.Standby: LogicRef.AddPoints(2000); break; case State.Launched: LogicRef.AddPoints(6000); LogicRef.AddLife(); break; } }