IEnumerator KK_INTRO()
    {
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        Player.WalkWithTransform2();
        yield return(new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength()));


        yield return(new WaitForSeconds(0.5f));

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <MonkeyHubController>().Katkooti_postion);
        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();
        //		Player.dialogController.PopDialogue ("Hi Monkeys!");  //63
        Player.dialogController.PopDialogue("مرحبًا أيتها القرود! ");
        SoundManager.Instance.PlaySoundOneShot("Monkeys");
        cameraController.ZoomIn();

        Player.StartTalking2();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayMonkeysHubDialogue()));

        //		Player.dialogController.ChangeText ("I got your note");  //64
        Player.dialogController.ChangeText("تسلمت ملاحظاتكم");
        SoundManager.Instance.PlaySoundOneShot("Monkeys");
        cameraController.Normal();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayMonkeysHubDialogue()));

        Player.dialogController.UnPopDialogue();
        //		yield return new WaitForSeconds (2f);
        Player.MakeIdle();
        PlayCurrentState();
    }
Ejemplo n.º 2
0
    IEnumerator MORE_GOODS_REQUIRED()
    {
        PopulateTutorialQuest();
        MainUIManager.Instance.hudController.inventoryIcon.SetActive(true);

        MainUIManager.Instance.hudController.gameObject.SetActive(false);
        MainUIManager.Instance.loadingUiController.ActivateLogQuest();
        AsyncOperation operation = Application.LoadLevelAsync("2dInfiniteRunner");

        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();

        yield return(new WaitUntil(() => (GameManager.Instance.QuestInitialized == false)));

        MainUIManager.Instance.decisionUiController.UnPopDecisionBox();
        MainUIManager.Instance.loadingUiController.Activate();
        operation = Application.LoadLevelAsync("MainScene");
        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();
        //yield return new WaitForSeconds (3f);
        //	GameManager.Instance.InstantiateObject ("ConstructionParticles", GameManager.Instance.getHabitat ().HouseBuildEffect.transform.position);
        GameManager.Instance.EnableExterior();

        cameraController          = Camera.main.gameObject.GetComponent <CameraController> ();
        Player                    = GameObject.FindObjectOfType <KatkootiController>();
        Player.transform.position = GameObject.FindGameObjectWithTag("SceneByDefaultPosition").transform.position;

        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        SoundManager.Instance.PlaySoundOneShot("SongBarPowerUp");
        //	SoundManager.Instance.PlaySoundOneShot ("Dummy");
        //Player.StartTalking ();

        //	yield return new WaitForSeconds(SoundManager.Instance.getSoundLengthByName("Dummy")-1f);
        Player.MakeIdle();
        PlayCurrentState();
    }
Ejemplo n.º 3
0
    IEnumerator PARTY_FURNITURE()
    {
//				yield return new WaitForSeconds(2f);
//
//				Player.animationController.PlayAnimation ("ChickSong");
//				GameManager.Instance.ChickSongPowerValue = 0;
//				MainUIManager.Instance.StartCoroutine (MainUIManager.Instance.hudController.StarEffect ());
//				yield return new WaitForSeconds (Player.animationController.GetCurrentPlayingClipLength ());
//
//				yield return new WaitForSeconds (1f);


        MainUIManager.Instance.decisionUiController.PopDicisionBox("ItemSelection");

        //				MainUIManager.Instance.decisionUiController.PopDicisionBox ("نعم/ لا");
        yield return(new WaitUntil(() => MainUIManager.Instance.decisionUiController.proceedStatus == true));

        MainUIManager.Instance.decisionUiController.UnPopDecisionBox();



//				Player.StartTalking3 ();
//				//		Player.dialogController.PopDialogue ("Shall we go to the monkeys?");
//				Player.dialogController.PopDialogue ("نذهب إلى القرود؟");
//		yield return new WaitForSeconds (SoundManager.Instance.PlayTigerCaveDialogue());
//				Player.MakeIdle ();
//				Player.dialogController.UnPopDialogue ();
//
//
//				yield return new WaitForSeconds (1.5f);


        MainUIManager.Instance.decisionUiController.PopDicisionBox("YesNoSelection");

        yield return(new WaitUntil(() => (MainUIManager.Instance.decisionUiController.proceedStatus == true)));

        MainUIManager.Instance.decisionUiController.UnPopDecisionBox();


        MainUIManager.Instance.loadingUiController.Activate();
        AsyncOperation operation = Application.LoadLevelAsync("MonkeysHub");

        yield return(new WaitUntil(() => (operation.isDone == true)));

        Monkeys = GameObject.FindObjectsOfType <MonkeyController>();
        Player  = GameObject.FindObjectOfType <KatkootiController>();

        Player.transform.position = GameObject.FindObjectOfType <MonkeyHubController> ().Katkooti_postion.transform.position;
        MainUIManager.Instance.loadingUiController.DeActivate();
        yield return(new WaitForSeconds(1f));

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <MonkeyHubController>().Katkooti_postion);
        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();


        Player.StartTalking();
        //	Player.dialogController.PopDialogue ("Hey Monkeys!");
        Player.dialogController.PopDialogue("مرحبًا أيتها القرود! ");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        //Player.dialogController.ChangeText ("Do you think you can help us find some ");//161
        Player.dialogController.ChangeText("هل تعتقدون أن \nبإمكانكم مساعدتنا ");
        //yield return new WaitForSeconds (SoundManager.Instance.PlayTigerCaveDialogue());
        SoundManager.Instance.IncrementTigerCaveDialogueSound();
//		yield return new WaitForSeconds (SoundManager.Instance.PlayTigerCaveDialogue());
//
//		yield return new WaitForSeconds (SoundManager.Instance.PlayTigerCaveDialogue());
        SoundManager.Instance.IncrementTigerCaveDialogueSound();
        SoundManager.Instance.IncrementTigerCaveDialogueSound();
        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

//				yield return new WaitForSeconds (1f);
//
//				MainUIManager.Instance.decisionUiController.PopDialogueIcon (GameObject.FindObjectOfType<MonkeyHubController>().monkey_1_postion);
//				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 ();
//
//
//				Monkeys [0].MonkeyTalk ();
//				//Monkeys [0].dialogController.PopDialogue ("Ahh, so you need our help? ");
//						Monkeys [0].dialogController.PopDialogue ("إذًا تحتاجون إلى مساعدتنا؟");
//		yield return new WaitForSeconds (2f);
//				//Monkeys [0].dialogController.ChangeText ("I propose a trade: ");
//				Monkeys [0].dialogController.ChangeText ("أقترح عليكم المقايضة\n او المبادلة ");
//		yield return new WaitForSeconds (2f);
//				//Monkeys [0].dialogController.ChangeText ("You do something for us, and we can do something for you?");
//				Monkeys [0].dialogController.ChangeText ("تفعلون شيئًا لأجلنا مقابل\n أن نفعل شيئًا لأجلكم؟");
//		yield return new WaitForSeconds (2f);
//				Monkeys [0].dialogController.UnPopDialogue ();
//				Monkeys [0].MonkeyIdle ();
//
//				yield return new WaitForSeconds (1f);
//
//				Monkeys [1].MonkeyTalk ();
//				//Monkeys [1].dialogController.PopDialogue ("Now that's some real Monkey Business");
//						Monkeys [1].dialogController.PopDialogue ("هذا بحق هو عمل القردة الحقيقي");
//		yield return new WaitForSeconds (2f);
//				Monkeys [1].dialogController.UnPopDialogue ();
//				Monkeys [1].MonkeyIdle ();
//
//				yield return new WaitForSeconds (1f);
//
//				Monkeys [2].MonkeyTalk ();
//				//Monkeys [2].dialogController.PopDialogue ("No it's NOT");
//						Monkeys [2].dialogController.PopDialogue ("كلا، ليس كذلك");
//		yield return new WaitForSeconds (2f);
//				Monkeys [2].dialogController.UnPopDialogue ();
//				Monkeys [2].MonkeyIdle ();
//
//				yield return new WaitForSeconds (1f);
//
//				Monkeys [3].MonkeyTalk ();
//				//Monkeys [3].dialogController.PopDialogue ("It's called…something");
//						Monkeys [3].dialogController.PopDialogue ("إنه يُدعى...شيء ما");
//		yield return new WaitForSeconds (2f);
//				Monkeys [3].dialogController.UnPopDialogue ();
//				Monkeys [3].MonkeyIdle ();
//
//				yield return new WaitForSeconds (1f);
//
//				Monkeys [0].MonkeyTalk ();
//				//Monkeys [0].dialogController.PopDialogue ("Quiet!,");
//						Monkeys [0].dialogController.PopDialogue ("صمتًا");
//		yield return new WaitForSeconds (2f);
//				//Monkeys [0].dialogController.ChangeText ("Quiet! As you can see Katkoooti, my monkeys get irritable when their words get boring");
//				Monkeys [0].dialogController.ChangeText ("كما ترى يا كتكوتي، تضطرب\n القردة عندما تصبح كلماتها مملة");
//		yield return new WaitForSeconds (2f);
//				//Monkeys [0].dialogController.ChangeText ("Help us learn new words so my monkeys can speak better!");
//				Monkeys [0].dialogController.ChangeText ("!ساعدنا على تعلم كلمات جديدة\n حتى تستطيع القردة التحدث بطريقة أفضل");
//		yield return new WaitForSeconds (2f);
//				Monkeys [0].dialogController.UnPopDialogue ();
//				Monkeys [0].MonkeyIdle ();
//
//
//				yield return new WaitForSeconds (1f);
//
//				Player.StartTalking ();
//				//Player.dialogController.PopDialogue ("Shall we help the monkeys?");
//				Player.dialogController.PopDialogue ("هلا ساعدنا القردة؟");
//		yield return new WaitForSeconds (2f);
//				Player.dialogController.UnPopDialogue ();
//				Player.MakeIdle ();
//
//				yield return new WaitForSeconds (1f);
//
//



        MainUIManager.Instance.decisionUiController.PopDicisionBox("YesNoSelection");
        yield return(new WaitUntil(() => (MainUIManager.Instance.decisionUiController.proceedStatus == true)));

        MainUIManager.Instance.decisionUiController.UnPopDecisionBox();

        PopulateTigerBaloonQuest();


        MainUIManager.Instance.hudController.gameObject.SetActive(false);
        MainUIManager.Instance.loadingUiController.ActivateSwingingWineQuest();
        operation = Application.LoadLevelAsync("WF2");
        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();

        yield return(new WaitUntil(() => (GameManager.Instance.QuestInitialized == false)));

        yield return(new WaitForSeconds(1f));

        MainUIManager.Instance.loadingUiController.Activate();
        operation = Application.LoadLevelAsync("MonkeysHub");
        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();

        Player = GameObject.FindObjectOfType <KatkootiController>();
        Player.transform.position = GameObject.FindGameObjectWithTag("SceneByDefaultPosition").transform.position;
        Monkeys = GameObject.FindObjectsOfType <MonkeyController> ();



        GameObject MonkeysMainObject = GameObject.FindObjectOfType <MonkeyHubController> ().gameObject;

        //	MainUIManager.Instance.
        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <MonkeyHubController>().monkey_1_postion);
        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();
//
//				//		Player.dialogController.PopDialogue ("Hi Monkeys!");
//				Monkeys[0].dialogController.PopDialogue ("لديك كل العناصر يا كتكوتي");
//
//				Monkeys[0].MonkeyTalk ();
//				yield return new WaitForSeconds (2f);
//				Monkeys [0].dialogController.UnPopDialogue ();
//				Monkeys[0].MonkeyIdle ();


        if (MainUIManager.Instance.decisionUiController.SelectedItem == 1)
        {
            MonkeysMainObject.GetComponent <MonkeyHubController> ().FlashingShoes.SetActive(true);
            yield return(new WaitForSeconds(3f));

            MonkeysMainObject.GetComponent <MonkeyHubController> ().FlashingShoes.SetActive(false);

            yield return(new WaitForSeconds(2f));

            MainUIManager.Instance.inventoryController.ResetInventory(2, 3);
            MainUIManager.Instance.inventoryController.Activate();
            yield return(new WaitForSeconds(1f));

            MainUIManager.Instance.inventoryController.PopulateAt(GameObject.FindObjectOfType <MonkeyHubController> ().FlashingShoesImage, 2);
        }
        else if (MainUIManager.Instance.decisionUiController.SelectedItem == 2)
        {
            MonkeysMainObject.GetComponent <MonkeyHubController> ().ShiningHat.SetActive(true);
            yield return(new WaitForSeconds(3f));

            MonkeysMainObject.GetComponent <MonkeyHubController> ().ShiningHat.SetActive(false);

            yield return(new WaitForSeconds(2f));

            //MainUIManager.Instance.inventoryController.ResetInventory (2, 3);
            MainUIManager.Instance.inventoryController.Activate();
            yield return(new WaitForSeconds(1f));

            MainUIManager.Instance.inventoryController.PopulateAt(GameObject.FindObjectOfType <MonkeyHubController> ().ShinyHatImage, 2);
        }

        yield return(new WaitForSeconds(2f));

        Player.dialogController.PopDialogue("شكرًا!");

        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));


        Player.dialogController.UnPopDialogue();


        MainUIManager.Instance.loadingUiController.Activate();
        operation = Application.LoadLevelAsync("TigerCave");
        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        yield return(new WaitForSeconds(1f));

        Player = GameObject.FindObjectOfType <KatkootiController> ();
        Tiger  = GameObject.FindObjectOfType <TigerController> ();

        GameManager.Instance.ChickSongPowerValue = 1;

        yield return(new WaitForSeconds(0.5f));

        GameObject.FindObjectOfType <TigerSceneController> ().TigerGlow.SetActive(true);
        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <TigerSceneController>().TigerBubblePosition);
        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();

        GameObject.FindObjectOfType <TigerSceneController> ().TigerGlow.SetActive(false);
        Player.animationController.PlayAnimation("ChickSong");
        //        Player.dialogController.UnPopDialogue ();
        MainUIManager.Instance.StartCoroutine(MainUIManager.Instance.hudController.StarEffect());
        GameManager.Instance.ChickSongPowerValue = 0;
        GameManager.Instance.InstantiateObject("ConstructionParticles", GameObject.FindObjectOfType <TigerSceneController>().SongPowerStarEffectPosition.transform.position);
        SoundManager.Instance.PlaySoundOneShot("SongBarPowerDown");
        yield return(new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength()));

        Tiger.MakeIdle(PlayerPrefs.GetInt("ItemSelected"));
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

        Player.dialogController.PopDialogue("تفضل يا ملك!");

        Player.StartTalking2();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.UnPopDialogue();


        Tiger.StartTalking(PlayerPrefs.GetInt("ItemSelected"));
        Tiger.dialogController.PopDialogue("هذه الأشياء هي ما أريده تمامًا");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(PlayerPrefs.GetInt("ItemSelected"));


//				Player.MakeIdle ();
//
//				yield return new WaitForSeconds (1f);
//				Player.dialogController.PopDialogue ("تبدو هذه الأشياء لطيفة!");
//
//				Player.StartTalking2 ();
//				yield return new WaitForSeconds (1f);
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        MainUIManager.Instance.hudController.EnableUIMapGlow();


        PlayCurrentState();
    }
Ejemplo n.º 4
0
    IEnumerator SCENE_INTRO()
    {
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        yield return(new WaitForSeconds(0.4f));

        //Tiger.TigerSad ();

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <TigerSceneController>().KKBubblePosition);
        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();

        Player.StartTalking();
        Player.dialogController.PopDialogue("مرحبًا يا ملك، ماالمناسبة؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <TigerSceneController>().TigerBubblePosition);
        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();

        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);
        Tiger.StartTalking(MainUIManager.Instance.decisionUiController.SelectedItem);
        Tiger.dialogController.PopDialogue("أرررغغغ!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        yield return(new WaitForSeconds(0.5f));

        Tiger.dialogController.PopDialogue("لا أعتقد أنني أستطيع تحمل \n المزيد من هذا!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        yield return(new WaitForSeconds(1f));

        Player.StartTalking();
        Player.dialogController.PopDialogue("يا للعجب!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.ChangeText("ما الذي أزعج ملك \nالغابة إلى هذا الحد؟");

        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

        Tiger.StartTalking(MainUIManager.Instance.decisionUiController.SelectedItem);
        yield return(new WaitForSeconds(0.5f));

        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);
        Tiger.PlayTigerMe(MainUIManager.Instance.decisionUiController.SelectedItem);
        Tiger.dialogController.PopDialogue("الجميع ينادونني بلقب ملك الغابة \n ولكن ماذا فعلت لأستحق هذا اللقب؟");

        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        yield return(new WaitForSeconds(0.5f));

        Tiger.PlayTigerMe(MainUIManager.Instance.decisionUiController.SelectedItem);
        Tiger.dialogController.PopDialogue("لقد شعرت بشيء داخلي عندما نظرت إلى \n العاصفة الجميلة ليلة أمس");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        yield return(new WaitForSeconds(0.5f));

        Tiger.dialogController.PopDialogue("ومن الآن فصاعدًا، أريد أن\n أكونا محبوبًا، وليس مخيفًا!");
        Tiger.PlayTigerPointingUp(MainUIManager.Instance.decisionUiController.SelectedItem);
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);


        Tiger.dialogController.PopDialogue("لذلك قررت أن أقيم حفلة\n للغابة كلها!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        yield return(new WaitForSeconds(1f));

        Player.StartTalking2();
        Player.dialogController.PopDialogue("تلك فكرة رائعة يا ملك!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.ChangeText("إذًا ما المشكلة؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

        Tiger.StartTalking(MainUIManager.Instance.decisionUiController.SelectedItem);
        //Tiger.PlayTigerPanic ();
        Tiger.dialogController.PopDialogue("لم أكن أحتاج إلى ملابس\n قبل العاصفة السحرية! ");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.ChangeText("الآن لا أعرف ماذا\n أرتدي لهذه الحفلة.");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        //Tiger.PlayTigerPanic ();
        Tiger.dialogController.ChangeText("أحتاج ان ارتدي  شيء مبهر");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        yield return(new WaitForSeconds(1f));

        Player.StartTalking();
        Player.dialogController.PopDialogue("أعدك بأنك ستكون \nأروع قط في الحفلة\n كلها يا ملك");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.ChangeText("لدي فكرة  ما رأيك في\n بعض الأحذية البراقة \nأو القبعة اللامعة؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        //	yield return new WaitForSeconds (2f);
        //	Player.dialogController.ChangeText ("الأحذية البراقة أو القبعة اللامعة؟");
        //	yield return new WaitForSeconds (3f);


        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

        Tiger.PlayAgree(MainUIManager.Instance.decisionUiController.SelectedItem);
        yield return(new WaitForSeconds(Tiger.animationController.GetCurrentPlayingClipLength()));

        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        Tiger.StartTalking(MainUIManager.Instance.decisionUiController.SelectedItem);

        Tiger.dialogController.PopDialogue("واو!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

//			Tiger.dialogController.ChangeText ("أنا رائع مع أي منهما!");
//			yield return new WaitForSeconds (SoundManager.Instance.PlayTigerCaveDialogue());
        SoundManager.Instance.IncrementTigerCaveDialogueSound();
        Tiger.dialogController.UnPopDialogue();
        Tiger.MakeIdle(MainUIManager.Instance.decisionUiController.SelectedItem);

        yield return(new WaitForSeconds(1f));

        Player.StartTalking();
        Player.dialogController.PopDialogue("أعتقد أن القردة \nقد تستطيع المساعدة");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.ChangeText("هلا ذهبنا إلى القردة لنعثر \nعلى بعض من ");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayTigerCaveDialogue()));

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

        PlayCurrentState();
    }
Ejemplo n.º 5
0
    IEnumerator HAIR_TORTOISE_DIALOGUES()
    {
        Hare.WalkWithTransform();
        Tortoise.WalkWithTransform();
        yield return(new WaitForSeconds(Tortoise.animationController.GetCurrentPlayingClipLength()));

        cameraController.ZoomIn();

        Giraafe.Talk();
        Giraafe.Order();
        yield return(new WaitForSeconds(Giraafe.animationController.GetCurrentPlayingClipLength()));

//		Giraafe.dialogController.ChangeText ("I thought we settled this one at the last Jungle Olympics");
        Giraafe.MoveLeft();
        Giraafe.Talk();
        Giraafe.dialogController.PopDialogue("أعتقد أننا سوينا هذه \nالقضية في دورة الألعاب \nالأولمبية الأخيرة في الغابة.");
//		Giraafe.TalkRight ();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //214

//		Giraafe.dialogController.ChangeText ("Didn’t Tortoise win the race between you two?");
        Giraafe.dialogController.ChangeText("ألم تفز السلحفاة \nبالسباق الذي تم بينكما؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //215

        Giraafe.MakeIdle();
        Giraafe.dialogController.UnPopDialogue();

        yield return(new WaitForSeconds(2f));

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <JungleHubController>().HarePosition);
        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();

        cameraController.PanRight(0.25f);
//		Hare.dialogController.PopDialogue ("I challenge that victory, Judge!");
        Hare.dialogController.PopDialogue("أنا اعترض على هذا الفوز،\n حضرة القاضية!");
        Hare.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //216

        //		Hare.dialogController.ChangeText ("Ever since crossing the finish line this tortoise hasn’t moved an inch");//217
        Hare.dialogController.ChangeText("فمنذ عبور خط \nالنهاية لم تتحرك \nالسلحفاة شبراً واحداً.");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //217

//		Hare.dialogController.ChangeText ("He couldn’t possibly have beat me in a race!");
        Hare.dialogController.ChangeText("فلا يمكنه أن يفوز علي \nفي سباق");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //218

        Hare.dialogController.UnPopDialogue();
        Hare.MakeIdle();
        yield return(new WaitForSeconds(2f));

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <JungleHubController>().TurtleBubblePOsition);
        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();

//		Tortoise.dialogController.PopDialogue ("I’ll tie your ears into a knot, Hare!");
        Giraafe.MoveRight();
        cameraController.PanLeft(0.25f);
        Tortoise.dialogController.PopDialogue("سأعقد أذنيك يا أرنب");
        Tortoise.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //219

//		Tortoise.dialogController.ChangeText ("I won fair and square.");
        Tortoise.dialogController.ChangeText("لقد فزت بنزاهة وجدارة");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //220

//		Tortoise.dialogController.ChangeText ("And I got the medal right here to prove it");
        Tortoise.dialogController.ChangeText("ولدي الميدالية هنا\n  لنثبت ذلك");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //221

        Tortoise.dialogController.ChangeText("سابقيني مجددًا\n وسوف ترين!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //222

        Tortoise.dialogController.UnPopDialogue();
        Tortoise.MakeIdle();
        yield return(new WaitForSeconds(2f));

//		Hare.dialogController.PopDialogue ("Race me again and you’ll see!");
        cameraController.Normal();
        Giraafe.MoveLeft();
        Hare.dialogController.PopDialogue("حضرة القاضية، أطالب\n بإعادة المباراة\n ضد هذه المخادعة!");
        Hare.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //223

        Hare.dialogController.UnPopDialogue();
        Hare.MakeIdle();

        yield return(new WaitForSeconds(2f));

//		Giraafe.dialogController.PopDialogue ("This is court of law! ");
        Giraafe.Talk();
        Giraafe.Order();
        yield return(new WaitForSeconds(Giraafe.animationController.GetCurrentPlayingClipLength()));

        Giraafe.MoveRight();
        Giraafe.Talk();
        Giraafe.dialogController.PopDialogue("هذه قاعة محكمة!");
        //Giraafe.TalkRight ();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //224

//		Giraafe.dialogController.ChangeText ("There will be no demands or name-calling here!");
        Giraafe.dialogController.ChangeText("لا يُسمح \nفيها بإلقاء الشتائم ! ");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //225

//		Giraafe.dialogController.ChangeText ("Mr. Tortoise, do you accept Ms. Hare’s challenge to a rematch?");
        Giraafe.dialogController.ChangeText("أيتها السلحفاة، هل\n تقبلين تحدي السيد\n أرنب لإعادة السباق؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //226

        Giraafe.dialogController.UnPopDialogue();
        Giraafe.MakeIdle();

        yield return(new WaitForSeconds(2f));


//		Tortoise.dialogController.PopDialogue ("To race??");
        Tortoise.dialogController.PopDialogue("السباق؟");
        Tortoise.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //227

//		Tortoise.dialogController.ChangeText ("Never happening, Judge.");
        Tortoise.dialogController.ChangeText("لن يحدث، حضرة القاضية");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //228

//		Tortoise.dialogController.ChangeText ("But I’ll appoint a champion to represent me, If there is one in the crowd!");
        Tortoise.dialogController.ChangeText("ولكني سأختار بطلاً \nليمثلني من بين الجمهور!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //229

        Tortoise.dialogController.UnPopDialogue();
        Tortoise.MakeIdle();


        yield return(new WaitForSeconds(1f));

//		Hare.dialogController.PopDialogue ("If that medal is on the line, I’m game for anything!");
        Hare.dialogController.PopDialogue("إذا كانت هذه الميدالية \nعلى المحك، فأنا \nأوافق على أي شيء!");
        Hare.Talk();
        Giraafe.MoveLeft();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //230

        Hare.dialogController.UnPopDialogue();
        Hare.MakeIdle();


        Giraafe.Talk();
//		Giraafe.dialogController.PopDialogue ("It seems we have a race on our hands.");
        Giraafe.dialogController.PopDialogue("يبدو ان لدينا سباق");

        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //231

//		Giraafe.dialogController.ChangeText ("Who is up to be Mr Tortoise's champion?");
        Giraafe.dialogController.ChangeText("من سيكون بطل السيدة\n سلحفاة؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //232

        Giraafe.dialogController.UnPopDialogue();
        Giraafe.MakeIdle();

        yield return(new WaitForSeconds(2f));

//		Player.dialogController.PopDialogue ("Shall we race with the Hare?");
        Player.dialogController.PopDialogue("هلا تسابقنا مع الأرنب؟");
        Player.StartTalking();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //233

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1.5f));


        MainUIManager.Instance.decisionUiController.PopDicisionBox("YesNoSelection");
        //		MainUIManager.Instance.decisionUiController.PopDicisionBox ("نعم/لا");
        yield return(new WaitUntil(() => (MainUIManager.Instance.decisionUiController.proceedStatus == true)));

        yield return(new WaitForSeconds(1.5f));

        MainUIManager.Instance.decisionUiController.UnPopDecisionBox();

        PopulateJungleCourtQuest();
        yield return(new WaitForSeconds(1.6f));

        MainUIManager.Instance.hudController.gameObject.SetActive(false);

        MainUIManager.Instance.loadingUiController.ActivateHareRunQuest();
        AsyncOperation operation = Application.LoadLevelAsync("2dInfiniteRunner");

        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();
        yield return(new WaitUntil(() => (GameManager.Instance.QuestInitialized == false)));

        MainUIManager.Instance.decisionUiController.UnPopDecisionBox();
        MainUIManager.Instance.loadingUiController.Activate();
        operation = Application.LoadLevelAsync("JungleCourt");
        yield return(new WaitUntil(() => (operation.isDone == true)));

        MainUIManager.Instance.loadingUiController.DeActivate();

        Player           = GameObject.FindObjectOfType <KatkootiController>();
        Tortoise         = GameObject.FindObjectOfType <TortoiseController>();
        Hare             = GameObject.FindObjectOfType <HareController>();
        Giraafe          = GameObject.FindObjectOfType <GiraafeController>();
        cameraController = Camera.main.gameObject.GetComponent <CameraController> ();
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        Player.transform.position   = GameObject.FindObjectOfType <JungleHubController> ().PlayerDefaultPos.transform.position;
        Tortoise.transform.position = GameObject.FindObjectOfType <JungleHubController> ().TurtleDefaultPos.transform.position;
        Hare.transform.position     = GameObject.FindObjectOfType <JungleHubController> ().HareDefaultPosition.transform.position;

        //	yield return new WaitForSeconds (1f);


        SoundManager.Instance.PlaySoundOneShot("WinningSound");
        yield return(new WaitForSeconds(4f));

        Player.Celebrations();
        SoundManager.Instance.PlaySoundOneShot("KKClap");
        Player.MakeIdle();


        yield return(new WaitForSeconds(2f));

//		Tortoise.dialogController.PopDialogue ("Was the Hare caught sleeping once again?");
        Tortoise.dialogController.PopDialogue("هل عُثر على الأرنب \nنائمًا مجددًا؟");
        Tortoise.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //239

        Tortoise.dialogController.UnPopDialogue();
        Tortoise.MakeIdle();

        yield return(new WaitForSeconds(1f));

        Player.dialogController.PopDialogue("هل يفعل ذلك كل مرة؟");
        Player.StartTalking();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //240

        Player.dialogController.ChangeText("ربما عليه أن يراجع طبيبًا");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //241

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();


        Giraafe.MoveLeft();
        Giraafe.Talk();
//		Giraafe.dialogController.PopDialogue ("I declare Tortoise's champion Katkooti the winner ");
        Giraafe.dialogController.PopDialogue("أعلن أن كتكوتي بطل \nالسلحفاة هو الفائز ");
        float temptime = SoundManager.Instance.PlayJungleCourtDialogue() / 2;

        yield return(new WaitForSeconds(temptime));        //242

        Giraafe.dialogController.ChangeText("وسأمنح هذه الميدالية \nللمتسابق الذي دار بشكل جيد!");
        yield return(new WaitForSeconds(temptime));

        Giraafe.dialogController.UnPopDialogue();
        Giraafe.MakeIdle();

        GameObject.FindObjectOfType <JungleHubController> ().JeenaMedal.SetActive(true);
        SoundManager.Instance.PlaySoundOneShot("MonkeyMedal");
        yield return(new WaitForSeconds(2f));

        GameObject.FindObjectOfType <JungleHubController> ().JeenaMedal.SetActive(false);


        MainUIManager.Instance.inventoryController.Activate();
        //MainUIManager.Instance.inventoryController.ResetInventory (3,3);
        yield return(new WaitForSeconds(1f));

        MainUIManager.Instance.inventoryController.PopulateAt(GameObject.FindObjectOfType <JungleHubController> ().JeenaMedalImage, 3);

        yield return(new WaitForSeconds(0.5f));


//		Hare.dialogController.PopDialogue ("You ran a good race but I won't go easy on you next time.");
        Hare.dialogController.PopDialogue("لقد جريت في السباق جيدًا \nولكنني لن أتساهل \nمعك في المرة القادمة");
        Hare.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //243

        Hare.dialogController.UnPopDialogue();
        Hare.MakeIdle();

        // Delete from here ...........................................
        SoundManager.Instance.InrementJungleCourtSound();
////		Hare.dialogController.ChangeText ("Come to me if you want to race again");
//		Hare.dialogController.ChangeText ("تعال الي إذا رغبت \nفي السباق مجددًا");
//		yield return new WaitForSeconds (SoundManager.Instance.PlayJungleCourtDialogue());//244
//		Hare.dialogController.UnPopDialogue ();
//		Hare.MakeIdle ();
//		yield return new WaitForSeconds (2f);
        //
        //		Player.dialogController.PopDialogue ("We have power left over, ");
        //		Player.StartTalking ();
        //		yield return new WaitForSeconds (2f);
        //		Player.dialogController.ChangeText ("why don’t we use it to make our home nicer?");
        //		yield return new WaitForSeconds (2f);
        //		Player.dialogController.ChangeText ("USE MY WORDSONG POWER TO Build new things in my home");
        //		yield return new WaitForSeconds (2f);
        //		Player.dialogController.UnPopDialogue ();
        //		Player.MakeIdle ();
        //		yield return new WaitForSeconds (2f);
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        MainUIManager.Instance.hudController.EnableUIMapGlow();


        PlayCurrentState();
        //MainUIManager.Instance.mapUIController.Activate ();
    }
Ejemplo n.º 6
0
    IEnumerator INTRO()
    {
        MainUIManager.Instance.hudController.gameObject.SetActive(true);
        //Player.MakeIdle ();
        yield return(new WaitForSeconds(0.5f));

        Player.WalkWithTransform();


        //Player.MakeIdle ();
        //Tortoise.WalkWithTransform ();
        //Hare.WalkWithTransform ();
        yield return(new WaitForSeconds(Player.animationController.GetCurrentPlayingClipLength()));

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <JungleHubController>().KKBuublePOsition);
        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();


//		Player.dialogController.PopDialogue ("Wow !");
        Player.dialogController.PopDialogue("رائع");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //207

        Player.StartTalking2();
        yield return(new WaitForSeconds(1f));

//		Player.dialogController.ChangeText ("What is this place?");

        Player.dialogController.ChangeText("ما هذا المكان؟");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //198

        Player.dialogController.UnPopDialogue();

        Player.MakeIdle();

        MainUIManager.Instance.decisionUiController.PopDialogueIcon(GameObject.FindObjectOfType <JungleHubController>().GiraafePosition);
        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();


        Giraafe.Talk();
        yield return(new WaitForSeconds(1f));

//		Giraafe.dialogController.PopDialogue ("This is a court of law, young one.");
        Giraafe.dialogController.PopDialogue("هذه قاعة محكمة صغيرة");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //199

        Giraafe.dialogController.UnPopDialogue();
        Giraafe.MakeIdle();

        yield return(new WaitForSeconds(1f));

        cameraController.PanLeft(0.5f);
//		Player.dialogController.PopDialogue ("Pleased to meet you mam, I’m Katkooti.");
        Player.dialogController.PopDialogue("أنا كتكوتي، سعدت \n بلقائك يا سيدتي");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //200

        Player.StartTalking();
//		Player.dialogController.ChangeText ("What shall I call you?");
        Player.dialogController.ChangeText("بم أناديك؟");

        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //201

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();


        yield return(new WaitForSeconds(1f));

        cameraController.ZoomIn();
//		Giraafe.dialogController.PopDialogue ("Well met Katkooti.");
        Giraafe.dialogController.PopDialogue("أهلً بك يا كتكوتي");
        Giraafe.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //202

//		Giraafe.dialogController.ChangeText ("I’m Judge Hakeema");
        Giraafe.dialogController.ChangeText("أنا القاضية حكيمة");

        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //203

        Giraafe.dialogController.UnPopDialogue();
        Giraafe.MakeIdle();

        cameraController.Normal();
        yield return(new WaitForSeconds(1f));

//		Player.dialogController.PopDialogue ("Why does the jungle need a courthouse Judge Hakeema?");
        Player.dialogController.PopDialogue("لماذا تحتاج الغابة \nإلى محكمة أيتها \nالقاضية حكيمة؟");

        Player.StartTalking();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //204

        Player.dialogController.UnPopDialogue();
        Player.MakeIdle();

        yield return(new WaitForSeconds(1f));

//		Giraafe.dialogController.PopDialogue ("Well, that storm that hit last night was quite something wasn’t it?");
        Giraafe.dialogController.PopDialogue("حسنًا، لقد كانت العاصفة \nالتي هبت ليلة أمس\n شيئًا خطيرًا، أليس كذلك؟");
        Giraafe.Talk();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //205


//
        Giraafe.dialogController.ChangeText("عندما استيقظت شعرت بشيء \nمختلف تمامًا. أدركت أنه بدون \nالقوانين، سنكون في غابة!");
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //206

        Giraafe.dialogController.UnPopDialogue();
        Giraafe.MakeIdle();

        yield return(new WaitForSeconds(1f));

//		Player.dialogController.PopDialogue ("Fascinating! ");
        Player.dialogController.PopDialogue("رائع");

        Player.StartTalking();
        yield return(new WaitForSeconds(SoundManager.Instance.PlayJungleCourtDialogue()));        //207

        Player.dialogController.UnPopDialogue();


        Player.MakeIdle();
        SoundManager.Instance.InrementJungleCourtSound();
        SoundManager.Instance.InrementJungleCourtSound();
        SoundManager.Instance.InrementJungleCourtSound();

        yield return(new WaitForSeconds(1f));



        PlayCurrentState();
    }
Ejemplo n.º 7
0
    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();
    }