public void BossDeathCleanup() { PortalCompleted = true; Eject(); PortalItem.Delete(); PortalItem2.Delete(); RemoveMobs(); RemoveCrystals(); ParticipantsScores.Clear(); if (ValidSpawnPoints != null) { ValidSpawnPoints.Clear(); ValidSpawnPoints.TrimExcess(); } }
public void StopPortal() { Status = PortalCompleted ? PortalStatus.Finished : PortalStatus.Failed; Eject(); PortalItem.Delete(); PortalItem2.Delete(); RemoveMobs(); RemoveCrystals(); _CoreTimer.Stop(); ParticipantsScores.Clear(); if (ValidSpawnPoints != null) { ValidSpawnPoints.Clear(); ValidSpawnPoints.TrimExcess(); } }