//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Method: Begin Scene Transition //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ private void UpdateSceneFadeout() { // If the scene has finished fading out, move on to next pahse if (CurrentSceneFadeEffect.IsCompleted) { CurrentSceneObject.SetActive(false); m_eTransitionPoint = TransitionPoint.BACKGROUND_TRANSITION_START; } }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Method: On Scene Fade in Begin //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ private void OnFadeinBegin() { CurrentSceneObject.SetActive(true); CurrentSceneFadeEffect.InitiateFadeIn(); m_eTransitionPoint = TransitionPoint.FADEIN; }