IEnumerator NotAvailable() { Player.WalkWithTransform(); yield return(new WaitForSeconds(2f)); Giraafe.MakeIdle(); Giraafe.TalkRight(); // Giraafe.dialogController.PopDialogue("Hi, I don't feel like playing right now."); Giraafe.dialogController.PopDialogue("مرحبًا، لا أشعر\n بالرغبة في اللعب الآن"); yield return(new WaitForSeconds(3f)); // Giraafe.dialogController.ChangeText ("Maybe next time"); Giraafe.dialogController.ChangeText("ربما في المرة القادمة"); yield return(new WaitForSeconds(1f)); Giraafe.dialogController.UnPopDialogue(); Giraafe.MakeIdle(); yield return(new WaitForSeconds(1f)); }
IEnumerator KatkootiIntro() { MainUIManager.Instance.hudController.gameObject.SetActive(true); yield return(new WaitForSeconds(0.4f)); Player.WalkWithTransform(); yield return(new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength())); // Player.MakeIdle (); yield return(new WaitForSeconds(0.4f)); Player.WaveHand(); // yield return new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength()-2); // SoundManager.Instance.PlaySoundOneShot ("Dummy"); Player.StartTalking(); // Player.dialogController.PopDialogue ("Good morning!"); Player.dialogController.PopDialogue("صباح الخير!"); // Player.dialogController.PopDialogue ("ربما توجد طريقة ما لإعادة\n شحنها لكي يمكنني إتمام بناء منزل"); yield return(new WaitForSeconds(SoundManager.Instance.PlayTutorialDialogue())); //13 // Player.dialogController.ChangeText("Are you new to Jungle Town?"); //Player.dialogController.ChangeText("هل أنت جديد هنا \n في مدينة الأدغال؟"); //yield return new WaitForSeconds(SoundManager.Instance.PlayTutorialDialogue());//14 // Player.dialogController.ChangeText("I just moved here too!"); // Player.dialogController.ChangeText("أنا ايضا إنتقلت هنا للتوا!"); //yield return new WaitForSeconds(SoundManager.Instance.PlayTutorialDialogue());//15 SoundManager.Instance.InrementTutorialSound(); SoundManager.Instance.InrementTutorialSound(); Player.MakeIdle(); //yield return new WaitForSeconds(1f); cameraController.ZoomIn(); Player.StartTalking3(); // Player.dialogController.ChangeText("My name is Katkooti"); Player.dialogController.ChangeText("اسمي كتكوتي"); yield return(new WaitForSeconds(SoundManager.Instance.PlayTutorialDialogue())); //16 // Player.dialogController.ChangeText("I haven’t seen a lot of people like you before, so you must be really special."); //Player.dialogController.ChangeText("لم أرى أناسًا كثيرين مثلك من\n قبل، لابد أنك مميز بحق"); //yield return new WaitForSeconds(SoundManager.Instance.PlayTutorialDialogue());//17 SoundManager.Instance.InrementTutorialSound(); Player.MakeIdle(); cameraController.Normal(); //yield return new WaitForSeconds(1f); // Player.dialogController.ChangeText(""); // yield return new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength()); PlayCurrentState(); }
// public void PopulateTigerBaloonQuest(){ // //GameManager.Instance.CurrentQuest = new Quest (); // // //GameManager.Instance.TogglePopulateQuest (GameManager.Instance.CurrentQuest); // } IEnumerator NotAvailable() { Player.WalkWithTransform(); yield return(new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength())); MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <ElephantHub>().elephantTalkPoint); yield return(new WaitForSeconds(0.35f)); GameObject.FindGameObjectWithTag("Bubble").GetComponent <Image> ().color = new Color32(255, 255, 255, 255); yield return(new WaitUntil(() => (MainUIManager.Instance.decisionUiController.proceedStatus == true))); GameObject.FindGameObjectWithTag("Bubble").GetComponent <Image> ().color = new Color32(255, 255, 255, 0); MainUIManager.Instance.decisionUiController.UnPopDialogueIcon(); Elephant.dialogController.PopDialogue("مرحبًا، لا أشعر بالرغبة\n في اللعب الآن"); yield return(new WaitForSeconds(3f)); Elephant.dialogController.ChangeText("ربما في المرة القادمة"); yield return(new WaitForSeconds(1f)); Elephant.dialogController.UnPopDialogue(); yield return(new WaitForSeconds(1f)); }