コード例 #1
0
 public void BossDeathCleanup()
 {
     PortalCompleted = true;
     Eject();
     PortalItem.Delete();
     PortalItem2.Delete();
     RemoveMobs();
     RemoveCrystals();
     ParticipantsScores.Clear();
     if (ValidSpawnPoints != null)
     {
         ValidSpawnPoints.Clear();
         ValidSpawnPoints.TrimExcess();
     }
 }
コード例 #2
0
 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();
     }
 }