protected void PauseAutoSpawn() { lock (this) { if (State != SpawningPoolState.Running) { return; } if (SpawnTimer != null) { SpawnTimer.Dispose(); } State = SpawningPoolState.Paused; } }
public void StopAutoSpawn() { lock (this) { if (!AutoSpawnEnabled) { return; } if (SpawnTimer != null) { SpawnTimer.Dispose(); } State = SpawningPoolState.Stoped; OnAutoSpawnDisabled(); } }