public override void Initialize(object[] screenParams) { base.Initialize(screenParams); m_PostLoadScreenId = (UI.Enums.ScreenId)screenParams[0]; if (screenParams.Length > 1) { // check for an scene to load while in this screen Enums.eScene scene = (Enums.eScene)screenParams[1]; VSEventManager.Instance.AddListener <UIEvents.AsyncSceneLoadProgressEvent>(OnLoadProgress); m_LoadStartTime = Time.time; SceneLoader.Instance.RequestSceneLoadAsync(scene); } }
public SceneLoadedEvent(Enums.eScene scene) { LoadedScene = scene; }
public void RequestSceneLoadAsync(Enums.eScene scene) { int buildIndex = (int)scene; mAsyncOp = SceneManager.LoadSceneAsync(buildIndex); }
public void RequestSceneLoad(Enums.eScene scene) { int buildIndex = (int)scene; SceneManager.LoadScene(buildIndex); }