예제 #1
0
        public void Load()
        {
            _lastLoadCall = null;

            this.DoLoad();
            Scene.RegisterLoadedScene(this);
        }
예제 #2
0
            private System.Collections.IEnumerator WaitForLoadRoutine()
            {
                yield return(_op);

                if (this != Scene._lastLoadCall)
                {
                    //another load async was called
                    this.SetSignal();
                    yield break;
                }

                Scene._lastLoadCall = null;
                Scene.RegisterLoadedScene(_scene);
                this.SetSignal();
            }