Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        player           = GameObject.FindGameObjectWithTag("Player");
        playerController = player.GetComponent <BTAPlayerController>();
        counter          = 0;
        sTalking         = false;
        nTalking         = false;
        tTalking         = false;
        trans            = false;
        timer            = 0;

        array     = new string[14];
        array[0]  = "quack. (I need your help).";
        array[1]  = "You need my help for what?";
        array[2]  = "Take me to the beach.";
        array[3]  = "*shrug* Okay. Beach it is!";
        array[4]  = "Why are you talking at a duck?";
        array[5]  = "I'm talking to him not at him, and we’re going on a mission. Nosey.";
        array[6]  = "You’re crazy lol.";
        array[7]  = "Quack!";
        array[8]  = "Aw cute, don’t kidnap this poor duck";
        array[9]  = "uhm... What he said about you wasn’t cute but okay";
        array[10] = "???";
        array[11] = "Quack!! (If he touches me again I’m smacking him)";
        array[12] = "okay bye Nick! Let's go Sunburn";
        array[13] = " ";
    }
Beispiel #2
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>();
     player           = GameObject.FindGameObjectWithTag("Player");
     playerController = player.GetComponent <BTAPlayerController>();
     //player controller ^^
     // BTASCRIPT vv
     BTAObject = GameObject.FindGameObjectWithTag("LT");
     BTAScript = BTAObject.GetComponent <BTAScript>();
     tTalking  = BTAScript.tTalking;
 }