private void DoesRockHitPlayer() { if (ProximitySphere.Intersects(player.ProximitySphere)) { player.GotHit(); RockDistroyedByPlayer(); } }
private void DoesShotHitPlayer() { if (ProximitySphere.Intersects(player.ProximitySphere)) { Deactivate(); player.GotHit(); } }
private void DoesRockHitSmallUFO() { if (ProximitySphere.Intersects(UFOs.SmallUFOCollision)) { UFOs.DestroySmallUFO(); UFOs.Explosion(); RockDistroyed(); } }
private void DoesSmallUFOShotRock() { for (int shot = 0; shot < UFOs.SmallUFOShots.Count; shot++) { if (UFOs.SmallUFOShots[shot].Visible) { if (ProximitySphere.Intersects(UFOs.SmallUFOShots[shot].ProximitySphere)) { UFOs.SmallUFOShots[shot].Deactivate(); RockDistroyed(); } } } }
private void DoesPlayerShootRock() { for (int shotCount = 0; shotCount < player.Shots.Count; shotCount++) { if (player.Shots[shotCount].Visible) { if (ProximitySphere.Intersects(player.Shots[shotCount].ProximitySphere)) { player.Shots[shotCount].Deactivate(); RockDistroyedByPlayer(); } } } }
private void DoesShotHitUFO() { if (UFOs.LargeUFOEnabled) { if (ProximitySphere.Intersects(UFOs.LargeUFOCollision)) { player.GotPoints(200); Deactivate(); UFOs.DestroyLargeUFO(); UFOs.Explosion(); } } else if (UFOs.SmallUFOEnabled) { if (ProximitySphere.Intersects(UFOs.SmallUFOCollision)) { player.GotPoints(1000); Deactivate(); UFOs.DestroySmallUFO(); UFOs.Explosion(); } } }