コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     SR = GetComponent <SpriteRenderer>();
     SR.sortingLayerName = "Default";
     camera           = GameObject.FindGameObjectWithTag("MainCamera");
     tform            = camera.GetComponent <Transform>();
     outdoorScript    = GameObject.Find("snssprite").GetComponent <OutdoorScript>();
     player           = GameObject.FindGameObjectWithTag("Player");
     playerController = player.GetComponent <OutdoorPlayerController>();
     talking          = playerController.talking;
 }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        player           = GameObject.FindGameObjectWithTag("Player");
        playerController = player.GetComponent <OutdoorPlayerController>();
        counter          = 0;
        trans            = false;

        array     = new string[39];
        array[0]  = "Sunburn right?";
        array[1]  = "...";
        array[2]  = "Who are you?";
        array[3]  = "Allow us to introduce ourselves.";
        array[4]  = "Reps for the Street Chickens? Why are you here?";
        array[5]  = "I’m scruffie and this is my brother Scrapie.";
        array[6]  = "Sup.";
        array[7]  = "Okay but why are you here?";
        array[8]  = "We’ve come against his wishes. There’s a slaughter about to take place.";
        array[9]  = "a slaughter?";
        array[10] = "We were hangin' out at the spot, and all of a sudden some SEAGULLS roll up!";
        array[11] = "And then we noticed that it wasn’t just any seagull it was the leader HIMSELF!!";
        array[12] = "and then-";
        array[13] = "AND THEN HE HAD THE AUDACITY!-";
        array[14] = "I was telling the story.";
        array[15] = "You weren’t telling it right SO LIKE I WAS SAYING!-";
        array[16] = "DON’T INTERRUPT ME!";
        array[17] = "...";
        array[18] = "So are you going to tell me or…?";
        array[19] = "The Beach Chicken Leader disrespected him in front of everyone to see and challenges him to a fight.";
        array[20] = "I was JUST about to get to that.";
        array[21] = "Whatever, shut up.";
        array[22] = "So you want me to help?";
        array[23] = "OBVIOUSLY!";
        array[24] = "Don’t be rude. We need him to help, remember?";
        array[25] = "Do you know WHY he wants to fight?";
        array[26] = "No clue, but I want to find some type of negotiation. If they win, they threatened to take a lot from us.";
        array[27] = "And you’re scared because...?";
        array[28] = "Between us, our leader hasn’t been doing the best. We don’t know if he’d be able to pull through.";
        array[29] = "What happened to him?";
        array[30] = "He broke his wing. Badly.";
        array[31] = "When?";
        array[32] = "Two days ago.";
        array[33] = "Dang.";
        array[34] = "Can you help us?";
        array[35] = "This is gonna take more than fowl y'know.";
        array[36] = "We got the money up front!";
        array[37] = "Alright then.";
        array[38] = " ";
    }