Пример #1
0
 void OnApplicationQuit()
 {
     if (watcher != null)
     {
         watcher.Unregister(this);
     }
     watcher = null;
 }
Пример #2
0
    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);
    }
Пример #3
0
 void Start()
 {
     watcher = GameObject.Find("Scripts").GetComponent <StepWatcher>();
     watcher.Register(this);
 }