internal void newSpawner(Spawner someNewSpawner) { levelSpawner = someNewSpawner; }
public void Unload() { foreach (MachineComponent removeMe in machineComponentList) { if (removeMe != null) { removeMe.RemoveFromAutoDrawSet(); } } machineComponentList.Clear(); foreach (EnvironmentObject removeMe in environmentObjectList) { if (removeMe != null) { removeMe.RemoveFromAutoDrawSet(); } } machineComponentList.Clear(); levelSpawner.Unload(); levelSpawner = null; levelReceptacle = null; }