void OnSceneChanged(UnityEngine.SceneManagement.Scene from, UnityEngine.SceneManagement.Scene to) { var annotation = new TAnnotation(); MessageUtil.SetScene(annotation, to.buildIndex); MessageUtil.SetLoadingState(annotation, m_DefaultAnnotationLoadingState); m_AdditionalLibraryMethods.SetCurrentAnnotation(annotation); }
void OnSceneChanged(UnityEngine.SceneManagement.Scene from, UnityEngine.SceneManagement.Scene to) { var annotation = new TAnnotation(); MessageUtil.SetScene(annotation, to.buildIndex); MessageUtil.SetLoadingState(annotation, MessageUtil.LoadingState.NotLoading); SetCurrentAnnotation(annotation); }
ErrorCode SetDefaultAnnotation(MessageUtil.LoadingState state) { var annotation = new TAnnotation(); MessageUtil.SetScene(annotation, SceneManager.GetActiveScene().buildIndex); MessageUtil.SetLoadingState(annotation, state); m_DefaultAnnotationLoadingState = state; return(m_AdditionalLibraryMethods.SetCurrentAnnotation(annotation)); }
void OnSceneChanged(UnityEngine.SceneManagement.Scene from, UnityEngine.SceneManagement.Scene to) { var annotation = new TAnnotation(); MessageUtil.SetScene(annotation, to.buildIndex); var errorCode = m_AdditionalLibraryMethods.SetCurrentAnnotation(annotation); if (errorCode != ErrorCode.Ok) { Debug.LogErrorFormat("SetCurrentAnnotation({0}) result is {1}", annotation, errorCode); } }
ErrorCode SetDefaultAnnotation(MessageUtil.LoadingState state) { var annotation = new TAnnotation(); MessageUtil.SetScene(annotation, SceneManager.GetActiveScene().buildIndex); MessageUtil.SetLoadingState(annotation, state); m_DefaultAnnotationLoadingState = state; var errorCode = m_AdditionalLibraryMethods.SetCurrentAnnotation(annotation); if (errorCode != ErrorCode.Ok) { Debug.LogErrorFormat("SetCurrentAnnotation({0}) result is {1}", annotation, errorCode); } return(errorCode); }