Example #1
0
 public void Pop(EZLoadingType loadingType = EZLoadingType.LoadingScene1)
 {
     ClearActions();
     if (GetComponent <PopSceneLoader>() == null)
     {
         _sceneLoader = gameObject.AddComponent <PopSceneLoader>();
     }
     _sceneLoader.Load(loadingType);
 }
Example #2
0
        public void Push(string nextSceneName, EZLoadingType loadingType = EZLoadingType.LoadingScene1)
        {
            ClearActions();
            RefreshStack(nextSceneName);

            if (GetComponent <PushSceneLoader>() == null)
            {
                _sceneLoader = gameObject.AddComponent <PushSceneLoader>();
            }
            _sceneLoader.Load(loadingType);
        }