void SceneChange() { switch (transition) { case Transition.FadeInScene: sceneFlow.FadeSceneIn(sceneNum); break; case Transition.FadeOutScene: sceneFlow.FadeSceneOut(sceneNum); break; case Transition.SlideSceneIn: sceneFlow.SlideSceneIn(sceneNum, vertical); break; case Transition.SlideSceneOut: sceneFlow.SlideSceneOut(sceneNum, vertical); break; case Transition.BackSceneOut: sceneFlow.KillCard(sceneNum); break; case Transition.MultiSceneBackOut: foreach (int num in multiSceneNum) { sceneFlow.KillCard(num); } break; case Transition.MultiSceneBackOutFade: foreach (int num in multiSceneNum) { sceneFlow.FadeSceneOut(num); } break; case Transition.MultiSceneBackOutSlide: foreach (int num in multiSceneNum) { sceneFlow.SlideSceneOut(num, vertical); } break; default: break; } // //everytime we change screen, we update the current screen to database, so the RPI will know which page we are on // if (firebaseE != null){ // firebaseE.updateScreenPage(sceneFlow.currentPage); // } // else { // firebaseR.updateScreenPage(sceneFlow.currentPage); // } }
void SceneChange() { //Debug.Log("Scene change: " + sceneNum); if (fadeScene && !fadeOutScene && !slideSceneOut) { sceneFlow.FadeSceneIn(sceneNum); } if (!fadeScene && !fadeOutScene && !slideSceneOut) { sceneFlow.SlideSceneIn(sceneNum); } if (!fadeScene && fadeOutScene && !slideSceneOut) { sceneFlow.FadeSceneOut(sceneNum); sceneFlow.currentPage = backSceneNum; } if (!fadeScene && !fadeOutScene && slideSceneOut) { sceneFlow.SlideSceneOut(sceneNum); sceneFlow.currentPage = backSceneNum; } //everytime we change screen, we update the current screen to database, so the RPI will know which page we are on firebase.updateScreenPage(sceneFlow.currentPage); }