public void UnregisterAllCreatables() { GameActor[] actors = new GameActor[creatables.Values.Count]; creatables.Values.CopyTo(actors, 0); for (int i = 0; i < actors.Length; ++i) { UnregisterCreatable(actors[i]); } /// Purge any creatable recyclables we have lying around. ActorFactory.ClearCreatables(); }