private IEnumerator Transition_CR() { float time = 0.0f; while (time < 6.0f) { time += Time.deltaTime; yield return(null); } if (GlobalManager.screenTransition != null) { GlobalManager.screenTransition.Fade(false, 1.0f); } yield return(new WaitForSeconds(1.0f)); GlobalManager.EnterPresentation(); }
void IsRotate() { if (Input.deviceOrientation == DeviceOrientation.LandscapeLeft) { ApplicationChrome.statusBarState = ApplicationChrome.navigationBarState = ApplicationChrome.States.Hidden; if (CanvasManager.againTrigger == true) { GlobalManager.EnterPresentation(); CanvasManager.againTrigger = false; } else if (GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetisFromCustom()) { PresentationData.in_SlidePath = _localPath; PresentationData.in_ExpectedTime = _expectedTime * 60; switch (_sizeOfRoom) { case 1: PresentationData.in_EnvType = PresentationData.EnvType.RPIS; break; case 2: PresentationData.in_EnvType = PresentationData.EnvType.EmptySpace; break; case 3: PresentationData.in_EnvType = PresentationData.EnvType.ConferenceRoom; break; } } else { PresentationData.in_SlidePath = GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetLocalPath(); PresentationData.in_ExpectedTime = GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetTime() * 60; _sizeOfRoom = GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetRoom(); switch (_sizeOfRoom) { case 1: PresentationData.in_EnvType = PresentationData.EnvType.RPIS; break; case 2: PresentationData.in_EnvType = PresentationData.EnvType.EmptySpace; break; case 3: PresentationData.in_EnvType = PresentationData.EnvType.ConferenceRoom; break; } } GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().SetisFromCustom(false); GlobalManager.EnterPresentation(); } else if (Input.GetKeyDown(KeyCode.R)) { Debug.Log("rotate = " + _sizeOfRoom); if (CanvasManager.againTrigger) { GlobalManager.EnterPresentation(); CanvasManager.againTrigger = false; } else if (GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetisFromCustom()) { //pc local custombutton-> custom -> rotation -> scene; PresentationData.in_SlidePath = _localPath; PresentationData.in_ExpectedTime = _expectedTime * 60; switch (_sizeOfRoom) { case 1: PresentationData.in_EnvType = PresentationData.EnvType.RPIS; break; case 2: PresentationData.in_EnvType = PresentationData.EnvType.EmptySpace; break; case 3: PresentationData.in_EnvType = PresentationData.EnvType.ConferenceRoom; break; } } else if (CanvasManager.againTrigger) { string id = PlayerPrefs.GetString("currentShowcase"); Debug.Log("TEST --=== " + id); if (id != null) { bShowcaseManager.showcase_Data?tempShowCaseData = _setManager.BShowcaseMgr.GetSignleShowcase(id); PresentationData.in_SlidePath = tempShowCaseData.Value._pptFolderPath; PresentationData.in_ExpectedTime = (int)tempShowCaseData.Value._expetedTime_min; _sizeOfRoom = (int)tempShowCaseData.Value._mapIdx; switch (_sizeOfRoom) { case 1: PresentationData.in_EnvType = PresentationData.EnvType.RPIS; break; case 2: PresentationData.in_EnvType = PresentationData.EnvType.EmptySpace; break; case 3: PresentationData.in_EnvType = PresentationData.EnvType.ConferenceRoom; break; } } } else //pc -> custom -> rotation -> scene; { PresentationData.in_SlidePath = GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetLocalPath(); PresentationData.in_ExpectedTime = GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetTime() * 60; _sizeOfRoom = GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().GetRoom(); switch (_sizeOfRoom) { case 1: PresentationData.in_EnvType = PresentationData.EnvType.RPIS; break; case 2: PresentationData.in_EnvType = PresentationData.EnvType.EmptySpace; break; case 3: PresentationData.in_EnvType = PresentationData.EnvType.ConferenceRoom; break; } } GameObject.Find("CanvasGroup").GetComponent <CanvasManager>().SetisFromCustom(false); GlobalManager.EnterPresentation(); } }
public void NextScene() { GlobalManager.EnterPresentation(); }