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