public void Load() { _lastLoadCall = null; this.DoLoad(); Scene.RegisterLoadedScene(this); }
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(); }