Example #1
0
    // Use this for initialization
    void Start()
    {
        AudioListener.pause = false;

        //UI SCREENS
        // laying = GameObject.Find ("Canvas/Laying");
        // laying.SetActive (false);
        // flashParents = GameObject.Find ("Canvas/FlashParents");
        // flashParents.SetActive (false);
        // flashBalloon = GameObject.Find ("Canvas/FlashBalloon");
        // flashBalloon.SetActive (false);
        // night = GameObject.Find ("Canvas/Night");
        // night.SetActive (false);
        // island = GameObject.Find ("Canvas/Island");
        // island.SetActive (false);

        //UI BUTTONS
        // pickButton = GameObject.Find ("Canvas/Pick");
        // pickButton.SetActive (false);
        // blowButton = GameObject.Find ("Canvas/Blow");
        // blowButton.SetActive (false);

        balloon = GameObject.Find ("Balloon");
        balloonScript = balloon.GetComponent<Balloon>();
        balloonScript.UpdateState(Balloon.State.Happy);
        player = GameObject.Find ("Player");
        playerScript = player.GetComponent<Player>();
        dialogueBox = GameObject.Find("DialogueBox");
        dialogueText = GameObject.Find("DialogueBox/Text");
        startLines.Add ("Ghil:	Bye balloon, our journey ends here.");
        startLines.Add ("Balloon: Wait, I thought…");
        startLines.Add ("Ghil: I’m gonna find my way back even if you don’t take me. " +
            "And even if I don’t, at least I won't have someone nagging me do things I’m not ready to do.");
        startLines.Add ("Balloon: Ouch… Well, if that’s what you really want. I think you're really running from " +
            "people not understanding or things not going as intended. But that’s just how life is sometimes, right?");
        startLines.Add ("Ghil: …");
        startLines.Add ("Balloon: Fine, as you wish, master.");
        startLines.Add ("Ghil: Finally, I can go back. Okay, I probably need a boat. Ugh. If I had magic it’d be so easy to make one. Let's see what I can find here.");

        //laydown
        blowedLines.Add ("Ghil: Oops, I got carried away playing, I didn't get to make a boat.");
        //flashback mom
        blowedLines.Add ("Those flowers remind me of mom’s favorites! She always has fresh flowers in beautiful vases.");
        //flashback balloon
        blowedLines.Add ("Stupid balloon…I can pick some for mom tomorrow. She will be happy with me back.");
        // night
        // island
        // normal play view

        // kill island
        pickedLines.Add ("Ghil: Oh no! I didn’t mean to kill the island. **cries** I was having such a good time " +
            "until I ruined it by feeling sorry for myself.");
        pickedLines.Add ("Ghil: Who am I kidding? " +
            "Mom doesn’t care if I bring her flowers back, she just wants me to have powers.");
        pickedLines.Add ("Ghil: *sigh* Freaking balloon. I guess if it wasn’t for you I wouldn’t have seen this awesome place.");

        // balloon back
        endLines.Add ("Ghil: Balloon? You came back!");
        endLines.Add ("Balloon: Morning my emotional wanderer, are you feeling better?");
        endLines.Add ("Ghil: Sorry about what I said yesterday. You were right, I am sad and afraid about my future so I wanted to escape it, but this island rules! Or,.. until I picked this flower- but I’m better now!");
        endLines.Add ("Balloon: Aw, I made you think that? I'm smart! You're smart too, Ghil. What you said got me putting myself into other people’s shoes. If I had a balloon family and balloon friends I’d miss them too.");
        endLines.Add ("Ghil: Aw thanks. I guess I can’t blame you for not putting yourself in my shoes since you don’t have feet! Now I just want to make my family proud.");
        endLines.Add ("Balloon: So you're ready to get that magic?");
        endLines.Add ("Ghil: Let’s go, captain!");

        chimeStart = 0;
    }