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, m_DefaultAnnotationLoadingState); var errorCode = m_AdditionalLibraryMethods.SetCurrentAnnotation(annotation); if (errorCode != ErrorCode.Ok) { Debug.LogErrorFormat("SetCurrentAnnotation({0}) result is {1}", annotation, errorCode); } }