Beispiel #1
0
 void conversation(int i)      //add enumerator
 {
     if (i == 0)
     {
         StartCoroutine(dialogueSystemMonk.speak(0, 1, speechBubble, monkBox));
     }
     if (i == 1)
     {
         StartCoroutine(dialogueSystemTinker.speak(0, 3, speechBubble, tinkerBox));
         isDoneAnimating = false;
         StartCoroutine(Animation1());
     }
     if (i == 2)
     {
         ++step;
         conversation(step);
     }
     if (i == 3)
     {
         StartCoroutine(dialogueSystemBadger.speak(0, 2, speechBubble, badgerBox));
     }
     if (i == 4)
     {
         StartCoroutine(dialogueSystemTinker.speak(4, 6, speechBubble, tinkerBox));
     }
     if (i == 5)
     {
         StartCoroutine(dialogueSystemBadger.speak(3, 8, speechBubble, badgerBox));
         StartCoroutine(DelayedEnd());
     }
 }
 void conversation(int i)      //add enumerator
 {
     if (i == 0)
     {
         StartCoroutine(dialogueSystemTinker.speak(0, 1, speechBubble, tinkerBox));
         TinkerSAC.sendToIdle();
     }
     if (i == 1)
     {
         StartCoroutine(dialogueSystemBadger.speak(0, 1, speechBubble, badgerBox));
     }
     if (i == 2)
     {
         StartCoroutine(dialogueSystemTinker.speak(2, 2, speechBubble, tinkerBox));
     }
     if (i == 3)
     {
         StartCoroutine(dialogueSystemBadger.speak(2, 3, speechBubble, badgerBox));
     }
     if (i == 4)
     {
         StartCoroutine(dialogueSystemTinker.speak(3, 3, speechBubble, tinkerBox));
     }
     if (i == 5)
     {
         StartCoroutine(dialogueSystemBadger.speak(4, 6, speechBubble, badgerBox));
     }
     if (i == 6)
     {
         StartCoroutine(dialogueSystemTinker.speak(4, 4, speechBubble, tinkerBox));
     }
     if (i == 7)
     {
         StartCoroutine(dialogueSystemBadger.speak(7, 7, speechBubble, badgerBox));
     }
     if (i == 8)
     {
         StartCoroutine(dialogueSystemTinker.speak(5, 5, speechBubble, tinkerBox));
     }
     if (i == 9)
     {
         StartCoroutine(dialogueSystemBadger.speak(8, 8, speechBubble, badgerBox));
     }
     if (i == 10)
     {
         StartCoroutine(animationSequence());
     }
 }
    IEnumerator transformKettle()
    {
        var kettleAnimationController = kettle.GetComponent <SpriteAnimationController>();

        yield return(new WaitForSecondsRealtime(1f));

        kettleAnimationController.nextAnimation = Enums.AnimStates.MoveLeft;
        yield return(new WaitForSecondsRealtime(1f));

        kettleAnimationController.nextAnimation = Enums.AnimStates.MoveRight;
        yield return(new WaitForSecondsRealtime(1f));

        kettleAnimationController.nextAnimation = Enums.AnimStates.MoveLeft;
        yield return(new WaitForSecondsRealtime(1f));

        kettle.SetActive(false);
        Destroy(kettle);
        bunbuku.SetActive(true);
        if (SceneManager.GetActiveScene().name == "temple.scene")
        {
            StartCoroutine(dialogueSystemBadger.speak(0, 0, speechBubble, box));
        }
    }