IEnumerator Start() { PopupFortuneMessage.gameObject.SetActive(false); animButtonNext.gameObject.SetActive(false); GlobalVariables.OnPauseGame += FLPauseGame; animEndMenu.gameObject.SetActive(false); ButtonReplay.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); eatFortuneCookieImage.texture = (GameData.FinishedMealSprite != null) ? GameData.FinishedMealSprite.texture : testSprite.texture; // GameData.FinishedMealSprite.texture; StartCoroutine("CreateTexture"); yield return(new WaitForSeconds(.7f)); //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonBackClicked"); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); if (SoundManager.Instance != null) { SoundManager.Instance.listStopSoundOnExit.Add(SoundManager.Instance.TimerSound); } }
IEnumerator Start() { animButtonNext.gameObject.SetActive(false); animTray.gameObject.SetActive(false); imgDoughColor = itemsColors.colors[(GameData.selectedFlavor > -1)? GameData.selectedFlavor : 0]; foreach (Transform t in animDough.transform) { t.GetComponent <Image>().color = imgDoughColor; } //BlockClicks.Instance.SetBlockAll(true); //BlockClicks.Instance.SetBlockAllDelay(.5f,false); DragItem.OneItemEnabledNo = 0; animDough.speed = 0; yield return(new WaitForSeconds(1)); rollingPin.bEnabled = true; RawDoughCut.bEnabled = false; //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(1)); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { FortuneCookieDrag.bShowTut = true; DragItem.OneItemEnabledNo = 0; FortuneCookieDrag.bEnabled = false; //GameData.selectedFlavor = 1; //PODESAVANJE BOJE ZA FILL for (int i = 0; i < fortuneCookies.Length; i++) { fortuneCookies[i].SetColor(itemsColors.colors[(GameData.selectedFlavor > -1)? GameData.selectedFlavor : 0]); } animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.1f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.5f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); //if(SoundManager.Instance!=null) SoundManager.Instance.listStopSoundOnExit.Add( SoundManager.Instance.FreezerOnSound); FortuneCookieDrag.bEnabled = true; }
IEnumerator Start() { SweetDumplingsSugar.bFirstTut = true; //BlockClicks.Instance.SetBlockAll(true); // GameData.selectedFlavor = 0; try{ //PODESAVANJE BOJE ZA FILL for (int i = 0; i < sweetDumplingsImgs.Length; i++) { sweetDumplingsImgs[i].color = sweetsColors.colors[GameData.selectedFlavor]; } }catch {} animButtonNext.gameObject.SetActive(false); DragItem.OneItemEnabledNo = 1; yield return(new WaitForSeconds(1f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(1f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); //scrollMenu.ChangeMenu(0); //scrollMenu.scrollRect.horizontalNormalizedPosition = 0; }
IEnumerator Start() { if (GameData.unlockedItems[0] == 1) { cgMixerHolder.gameObject.SetActive(true); GameObject go = GameObject.Find("Canvas/MixerHolder/HandMixer/Lock"); go.transform.parent.GetComponent <Mixer>().enabled = true; GameObject.Destroy(go.transform.parent.GetComponent <EventTrigger>()); go.SetActive(false); } animButtonNext.gameObject.SetActive(false); scrollMenu.gameObject.SetActive(false); cgMixerHolder.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); //BlockClicks.Instance.SetBlockAllDelay(.5f,false); Mixer.bEnabled = false; Mixer.bMixBowl = false; DragItem.OneItemEnabledNo = 0; yield return(new WaitForSeconds(1)); DragItem.OneItemEnabledNo = 1; DoughHolder.SetActive(false); MixerHolder = GameObject.Find("BowlHolder/BowlAnimationHolder/MixerHolder").transform; //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); yield return(new WaitForSeconds(1)); Tutorial.Instance.ShowTutorial(0); }
IEnumerator Start() { DragItem.OneItemEnabledNo = 0; ButtonStove.enabled = false; bowl.GetComponent <ItemAction>().enabled = false; BowlCollider.SetActive(false); Tray.gameObject.SetActive(false); int selectedCol = (GameData.selectedColor > -1)? GameData.selectedColor : 1; progressBar.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.1f)); scrollMenu.ShowMenu(0); yield return(new WaitForSeconds(.1f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); bowl.gameObject.SetActive(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { int selectedFlavor = (GameData.selectedFlavor > -1)? GameData.selectedFlavor : 1; // Image[] imgs = sweetsHolder.GetComponentsInChildren<Image>(true); // foreach(Image img in imgs) img.color = sweetDumplingsDoughColors.colors [selectedCol]; for (int i = 0; i < dumpplings.Length; i++) { dumpplings[i].GetComponent <Image>().color = sweetDumplingsDoughColors.colors [selectedFlavor]; } DishCollider.SetActive(false); spoon.enabled = false; spoon.gameObject.SetActive(false); progressBar.gameObject.SetActive(false); Plate.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.5f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); ButtonStove.bEnabled = true; phase = 1; }
/// <summary> /// Funkcija za prikaz Menu-ja koji je pozvan kao PopUp-a /// </summary> /// /// <param name="menu">Game object koji se prosledjuje za prikaz, mora imati na sebi skriptu Menu.</param> public void ShowPopUpMenu(GameObject menu) { menu.gameObject.SetActive(true); currentPopUpMenu = menu.GetComponent <Menu>(); currentPopUpMenu.OpenMenu(); activeMenu = menu.name; //PROBLEM AKO SE OTVORE VISE MENIJA bPopUpVisible = true; if (SoundManager.Instance != null) { //if(Time.timeScale>0 ) SoundManager.Instance.Play_PopUpShow(.05f); //else SoundManager.Instance.Play_Sound(SoundManager.Instance.PopUpShow); } if (menu.name == "PopUpAreYouSure") { EscapeButtonManager.AddEscapeButonFunction("ButtonHomeYesClicked"); } else if (menu.name != "PopUpPause") { EscapeButtonManager.AddEscapeButonFunction("ClosePopUpMenuEsc", menu.name); } //if(FBNativeAdsController.Instance!=null) FBNativeAdsController.Instance.ShowPopUp( menu.name); FBShowPopUp(menu.gameObject); }
/// <summary> /// Funkcija za prikaz Menu-ja koji je pozvan kao PopUp-a /// </summary> /// /// <param name="menu">Game object koji se prosledjuje za prikaz, mora imati na sebi skriptu Menu.</param> public void ShowPopUpMenu(GameObject menu) { menu.gameObject.SetActive(true); currentPopUpMenu = menu.GetComponent <Menu> (); currentPopUpMenu.OpenMenu(); activeMenu = menu.name; SoundManager.Instance.Play_PopUpShow(.05f); if (Application.loadedLevelName != "Room") { EscapeButtonManager.AddEscapeButonFunction("ClosePopUpMenuEsc", menu.name); } }
public void ButtonHomeNoClicked() { //BlockClicks.Instance.SetBlockAll(true); //BlockClicks.Instance.SetBlockAllDelay(.5f,false); if (SoundManager.Instance != null) { SoundManager.Instance.Play_ButtonClick(); } PopupAreYouSure.parent.parent.GetComponent <MenuManager>().ClosePopUpMenu(PopupAreYouSure.gameObject); if (EscapeButtonManager.EscapeButonFunctionStack.Count == 0) { EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); } }
IEnumerator Start() { //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.1f)); scrollMenu.ShowMenu(0); yield return(new WaitForSeconds(.9f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(1f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { Decoration.bEnableDrag = false; stickers.decorationTransform.bMoveDecoratins = false; //BlockClicks.Instance.SetBlockAll(true); DragItem.OneItemEnabledNo = 1; yield return(new WaitForSeconds(1f)); //LevelTransition.Instance.ShowScene(); //BlockClicks.Instance.SetBlockAll(false); StickyerPanel.SetActive(true); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { scrollMenu.gameObject.SetActive(false); int selectedCol = (GameData.selectedColor > -1)? GameData.selectedColor : 1; noodlesPlate.GetComponent <Image>().color = noodleColors.colors[selectedCol]; imgNoodlesSC.color = noodleColors.colors[selectedCol]; EndGameAnim.enabled = false; Spatula.gameObject.SetActive(false); animIngredients.gameObject.SetActive(false); imgSoySauce.gameObject.SetActive(false); imgMeat.gameObject.SetActive(false); imgVegetables1.gameObject.SetActive(false); imgVegetables2.gameObject.SetActive(false); progressBar.gameObject.SetActive(false); Plate.gameObject.SetActive(false); oilFryingPan.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.1f)); //scrollMenu.ShowMenu(0); yield return(new WaitForSeconds(.1f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.1f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); DragItem.OneItemEnabledNo = -1; if (SoundManager.Instance != null) { SoundManager.Instance.listStopSoundOnExit.Add(SoundManager.Instance.MixerSound); } }
IEnumerator Start() { PopupTapToEat.Play("defHidden", -1, 0); yield return(new WaitForEndOfFrame()); PopupTapToEat.gameObject.SetActive(false); dumplingsLeft = dumplings.Length; int selectedFlavor = (GameData.selectedFlavor > -1)? GameData.selectedFlavor : 1; animButtonNext.gameObject.SetActive(false); GlobalVariables.OnPauseGame += FLPauseGame; animEndMenu.gameObject.SetActive(false); ButtonReplay.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); for (int i = 0; i < dumplings.Length; i++) { dumplings[i].GetComponent <Image>().color = sweetDumplingsDoughColors.colors [selectedFlavor]; } yield return(new WaitForSeconds(.7f)); //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonBackClicked"); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); if (SoundManager.Instance != null) { SoundManager.Instance.listStopSoundOnExit.Add(SoundManager.Instance.TimerSound); } spoon.bIskoriscen = true; Tutorial.Instance.ShowTutorial(0); yield return(new WaitForSeconds(4f)); Tutorial.Instance.StopTutorial(); PopupTapToEat.gameObject.SetActive(true); PopupTapToEat.Play("show", -1, 0); }
IEnumerator Start() { //GameData.dimSumFlavors = new int[] {-1,1,0,3}; if (GameData.dimSumFlavors[0] > -1) { dimSumPieces[0].color = dimSumColors.colors[GameData.dimSumFlavors[0]]; } if (GameData.dimSumFlavors[1] > -1) { dimSumPieces[1].color = dimSumColors.colors[GameData.dimSumFlavors[1]]; } if (GameData.dimSumFlavors[2] > -1) { dimSumPieces[2].color = dimSumColors.colors[GameData.dimSumFlavors[2]]; } if (GameData.dimSumFlavors[3] > -1) { dimSumPieces[3].color = dimSumColors.colors[GameData.dimSumFlavors[3]]; } DragItem.OneItemEnabledNo = 0; scrollMenu.HideMenu(); psSmoke.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.1f)); yield return(new WaitForSeconds(.5f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.5f)); //BlockClicks.Instance.SetBlockAll(false); DragItem.OneItemEnabledNo = 1; ScrollMenuDragItem.bEnableDrag = false; Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { if (GameData.selectedFlavor == -1) { GameData.selectedFlavor = 2; } if (GameData.chocolateFillColor == -1) { GameData.chocolateFillColor = 0; } //BlockClicks.Instance.SetBlockAll(true); imgFortuneCookie.color = doughColors.colors[GameData.selectedFlavor]; imgFortuneCookieChocolate.color = chocolateColors.colors[GameData.chocolateFillColor]; SC_imgFortuneCookie.color = doughColors.colors[GameData.selectedFlavor]; SC_imgFortuneCookieChocolate.color = chocolateColors.colors[GameData.chocolateFillColor]; colider2D.gameObject.SetActive(false); yield return(new WaitForEndOfFrame()); //scrollMenu.HideMenu(); yield return(new WaitForSeconds(.1f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.3f)); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); scrollMenu.ShowMenu(0); scrollMenu.scrollRect.horizontalNormalizedPosition = 0; yield return(new WaitForSeconds(.5f)); //BlockClicks.Instance.SetBlockAll(false); }
IEnumerator Start() { int selectedCol = (GameData.selectedColor > -1)? GameData.selectedColor : 1; noodlesPlate.GetComponent <Image>().color = noodleColors.colors[selectedCol]; Strainer.gameObject.SetActive(false); progressBar.gameObject.SetActive(false); Plate.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.5f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { PopupTapToEat.Play("defHidden", -1, 0); yield return(new WaitForEndOfFrame()); PopupTapToEat.gameObject.SetActive(false); DragItem.OneItemEnabledNo = 0; springRollsLeft = springRolls.Length; for (int i = 0; i < springRolls.Length; i++) { springRollsSauce[i].color = imgSauce.color; } animButtonNext.gameObject.SetActive(false); GlobalVariables.OnPauseGame += FLPauseGame; animEndMenu.gameObject.SetActive(false); ButtonReplay.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); yield return(new WaitForSeconds(.7f)); //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonBackClicked"); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); if (SoundManager.Instance != null) { SoundManager.Instance.listStopSoundOnExit.Add(SoundManager.Instance.TimerSound); } Tutorial.Instance.ShowTutorial(0); yield return(new WaitForSeconds(4f)); Tutorial.Instance.StopTutorial(); PopupTapToEat.gameObject.SetActive(true); PopupTapToEat.Play("show", -1, 0); }
//public ProgressBar progressBar; IEnumerator Start() { GlobalVariables.OnPauseGame += FLPauseGame; GlobalVariables.OnUIContinueGame += PauseUI_ContinueGame; GlobalVariables.OnFLContinueGame += PauseFakeLoading_ContinueGame; RawSpringRoll.bEnabled = false; animEndMenu.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); //BlockClicks.Instance.SetBlockAllDelay(.5f,false); ButtonFryer.enabled = false; animTray.gameObject.SetActive(false); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(1)); while (GlobalVariables.bPauseGame) { yield return(new WaitForEndOfFrame()); } for (int i = 0; i < 3; i++) { ImgRawSpringRolls[i].transform.GetComponent <RawSpringRoll>().TargetPoint = SpringRollsEndPos; } //progressBar.gameObject.SetActive(false); animTemperatureInd.speed = 0; animProgress.speed = 0; //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); // yield return new WaitForSeconds(1); Tutorial.Instance.ShowTutorial(0); }
IEnumerator Start() { scrollMenu.gameObject.SetActive(false); bambooSteamer.gameObject.SetActive(false); scoop.gameObject.SetActive(false); fillPlateHolder.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); animButtonNext.gameObject.SetActive(false); yield return(new WaitForSeconds(.1f)); ScrollMenuDragItem.bEnableDrag = false; yield return(new WaitForSeconds(.5f)); //LevelTransition.Instance.ShowScene(); yield return(new WaitForSeconds(.5f)); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); }
IEnumerator Start() { //GameData.selectedFlavor = 1; //PODESAVANJE BOJE ZA FILL for (int i = 1; i < cookieTray.childCount; i++) { cookieTray.GetChild(i).GetComponent <Image>().color = itemsColors.colors[(GameData.selectedFlavor > -1)? GameData.selectedFlavor : 0]; } animButtonNext.gameObject.SetActive(false); DragItem.OneItemEnabledNo = 1; yield return(new WaitForSeconds(1f)); //LevelTransition.Instance.ShowScene(); //BlockClicks.Instance.SetBlockAll(false); Tutorial.Instance.ShowTutorial(0); EscapeButtonManager.AddEscapeButonFunction("ButtonHomeClicked"); //if(SoundManager.Instance!=null) SoundManager.Instance.listStopSoundOnExit.Add( SoundManager.Instance.FreezerOnSound); //animCookieTray.enabled = true; //animCookieTray.Play("ShowTray"); yield return(new WaitForSeconds(1f)); //animCookieTray.enabled = false; diCookieTray.enabled = true; }
IEnumerator Start() { animTutorialRotation.gameObject.SetActive(false); spatula.GetComponent <Spatula>().Init(); spatula.gameObject.SetActive(false); animButtonNext.gameObject.SetActive(false); imgDough.gameObject.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); //BlockClicks.Instance.SetBlockAllDelay(.5f,false); DragItem.OneItemEnabledNo = 0; yield return(new WaitForSeconds(1)); DragItem.OneItemEnabledNo = 1; //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonBackClicked"); yield return(new WaitForSeconds(1)); //scrollMenu.ShowMenu(0); Vector3 ladleStartPos = Ladle.position; Vector3 arcMax = new Vector3(0, 2, 0); float pom = 0; while (pom < 1) { pom += Time.deltaTime * .8f; Ladle.position = Vector3.Lerp(ladleStartPos, LadleEndPosition.position, pom) + pom * (1 - pom) * arcMax; yield return(new WaitForEndOfFrame()); } Ladle.transform.position = LadleEndPosition.position; Tutorial.Instance.ShowTutorial(0); }
IEnumerator Start() { PopupTapToEat.Play("defHidden", -1, 0); yield return(new WaitForEndOfFrame()); PopupTapToEat.gameObject.SetActive(false); //gameTimer.TimeLeft = 30; DragItem.OneItemEnabledNo = 0; //GameData.selectedColor = 1; //GameData.dimSumFlavors = new int[] {-1,1,0,3}; try{ if (GameData.dimSumFlavors[0] > -1) { dimSumPieces[0].color = dimSumDoughColors.colors[GameData.dimSumFlavors[0]]; } if (GameData.dimSumFlavors[1] > -1) { dimSumPieces[1].color = dimSumDoughColors.colors[GameData.dimSumFlavors[1]]; } if (GameData.dimSumFlavors[2] > -1) { dimSumPieces[2].color = dimSumDoughColors.colors[GameData.dimSumFlavors[2]]; } if (GameData.dimSumFlavors[3] > -1) { dimSumPieces[3].color = dimSumDoughColors.colors[GameData.dimSumFlavors[3]]; } imgSauce.color = dimSumSauceColors.colors[GameData.selectedColor]; dimSumSauce[0].color = dimSumSauceColors.colors[GameData.selectedColor]; dimSumSauce[1].color = dimSumSauceColors.colors[GameData.selectedColor]; dimSumSauce[2].color = dimSumSauceColors.colors[GameData.selectedColor]; dimSumSauce[3].color = dimSumSauceColors.colors[GameData.selectedColor]; } catch {} dimSumLeft = dimSumPieces.Length; animButtonNext.gameObject.SetActive(false); GlobalVariables.OnPauseGame += FLPauseGame; animEndMenu.gameObject.SetActive(false); ButtonReplay.SetActive(false); //BlockClicks.Instance.SetBlockAll(true); yield return(new WaitForSeconds(.7f)); //LevelTransition.Instance.ShowScene(); EscapeButtonManager.AddEscapeButonFunction("ButtonBackClicked"); yield return(new WaitForSeconds(.3f)); //BlockClicks.Instance.SetBlockAll(false); if (SoundManager.Instance != null) { SoundManager.Instance.listStopSoundOnExit.Add(SoundManager.Instance.TimerSound); } //========OTVARANJE CINIJE================ Vector3 bsStartPos = bambooSteamerTop.position; Vector3 bsEndPos = bsTopEndPos.position; Vector3 arcMax = new Vector3(0, 2, 0); float pom = 0; while (pom < 1) { pom += .8f * Time.fixedDeltaTime; bambooSteamerTop.position = Vector3.Lerp(bsStartPos, bsEndPos, pom) + pom * (1 - pom) * arcMax; yield return(new WaitForFixedUpdate()); } bambooSteamerTop.gameObject.SetActive(false); //========================== Tutorial.Instance.ShowTutorial(0); yield return(new WaitForSeconds(4f)); Tutorial.Instance.StopTutorial(); PopupTapToEat.gameObject.SetActive(true); PopupTapToEat.Play("show", -1, 0); }