void OnApplicationQuit() { if (watcher != null) { watcher.Unregister(this); } watcher = null; }
void Start() { objects = new Dictionary <string, GameObject>(); scenes = new Dictionary <string, Scene>(); isLoaded = new Dictionary <string, bool>(); var names = new string[] { "Exterior", "Floor0", "Floor1", }; foreach (var name in names) { objects[name] = null; isLoaded[name] = false; } watcher = GameObject.Find("Scripts").GetComponent <StepWatcher>(); watcher.Register(this); }
void Start() { watcher = GameObject.Find("Scripts").GetComponent <StepWatcher>(); watcher.Register(this); }