public void Tut_S2() { // map animaiton //// block SCROLLING Hide(transitComic.GetComponent <CanvasGroup>()); comicClick = 0; HideHint(); FinalCameraController.ChangeToSubway(); FinalCameraController.GotoPage(3); Animator myAnim = MapInSubway.GetComponent <Animator>(); myAnim.SetTrigger("blingbling"); FinalCameraController.enableScroll = false; }
public IEnumerator trainPause() { float normalSpeed = 0.3f; FinalCameraController.CancelAllUI(false); FinalCameraController.enableScroll = false; Banner.SetActive(false); pauseBeforeMove = true; if (FinalCameraController.alreadyNotice) { BagsController.HideNotice(); } Show(FinalCameraController.disableInputCG); BlackScreen.SetActive(true); FinalCameraController.ChangeToSubway(); FinalCameraController.CameraMovement.JumpToPage(4); yield return(new WaitForSeconds(1f)); BlackScreen.SetActive(false); yield return(new WaitForSeconds(0.5f)); if (LevelManager.UIRateShown && LostAndFound.totalCount > 0) { StartCoroutine(LostAndFound.AnimationDropNUm()); yield return(new WaitForSeconds(1f)); } else { AdsController.UpdatePosters(); yield return(new WaitForSeconds(1f)); } FinalCameraController.ChangeCameraSpeed(normalSpeed * 0.5f); if (!LevelManager.FishReturnBagShown) { FinalCameraController.GotoPage(3); if (CountBagInMachine(2)) { yield break; } yield return(new WaitForSeconds(0.5f)); FinalCameraController.GotoPage(2); if (CountBagInMachine(1)) { yield break; } if (CountBagInMachine(0)) { yield break; } } StartCoroutine(TrainPauseResume()); }