public void ProgressBegin(string introScene) { if (LoLManager.instance.curProgress == 0) { M8.SceneManager.instance.LoadScene(introScene); } else { LoLMusicPlaylist.instance.PlayStartMusic(); GameFlowController.LoadCurrentProgressScene(); } }
IEnumerator DoGoNextPage() { animator.Play(takeInteractExit); bool isLastPage = mCurPageInd == pages.Length - 1; if (mCurPageInd < pages.Length) { var page = pages[mCurPageInd]; if (page.animator) { page.animator.Play(page.takeExit); while (page.animator.isPlaying) { yield return(null); } } //only deactivate if it's the last page or the next page has a different root if (isLastPage || page.root != pages[mCurPageInd + 1].root) { page.root.SetActive(false); } } if (!isLastPage) { mCurPageInd++; ShowCurrentPage(); } else //proceed to gameplay { GameFlowController.LoadCurrentProgressScene(); } }
public void ProgressStart() { GameFlowController.LoadCurrentProgressScene(); }