Exemplo n.º 1
0
 public static bool LoadScene(SceneRequest req)
 {
     if (!EngineStateManager.IsLoading && !LOADING)
     {
         Log.Unity($"Successfully requested scene load for {req}.");
         req.onQueued?.Invoke();
         IsFirstScene = false;
         LOADING      = true;
         EngineStateManager.SetLoading(true, null);
         SceneLoader.Main.RunRIEnumerator(WaitForSceneLoad(req, true));
         return(true);
     }
     else
     {
         Log.Unity($"REJECTED scene load for {req}.");
     }
     return(false);
 }