예제 #1
0
 void Start()
 {
     //Sets values for varibles
     compassNeedle = GameObject.Find("compass_needle").GetComponent <PointTowards> ();
     questInfo     = GameObject.Find("quest_info_text").GetComponent <Text> ();
     counter       = 0;
 }
예제 #2
0
    void Start()
    {
        //Find all objects needed
        dialogTextBox = GameObject.Find("dialogue_ingame").GetComponent <Text> ();
        characterName = GameObject.Find("dialogue_name").GetComponent <Text> ();
        questInfo     = GameObject.Find("quest_info_text").GetComponent <Text> ();
        buttonEvents  = GameObject.Find("GameControl").GetComponent <GameButtons> ();
        compass       = GameObject.Find("compass_needle").GetComponent <PointTowards> ();
        //Position characternames
        nameLeftPos  = new Vector3(217.0f, -25.0f);
        nameRightPos = new Vector3(612.0f, -25.0f);
        //position shopkeeper name in shop
        nameShop = new Vector3(215.4f, 73.2f);
        //Textcolor based on character
        textColorPlayer     = "#173E3CFF";
        textColorShopkeeper = "#631911FF";
        textColorMarine     = "#323A46FF";
        //Arrays to check if player has pressed all buttons
        wadCheck [0] = false;
        wadCheck [1] = false;
        wadCheck [2] = false;

        qeCheck [0] = false;
        qeCheck [1] = false;

        //Pause at startup
        buttonEvents.pause();
        //Turn off shooting
        shootingAllowed(false, "NULL");
        //Fill arrays with text
        dialogInArray();
        //set quest info
        questInfo.text = "Talk to Shopkeeper.";
        //Trigger dialog here
        dialog(0);
        //The speed the buttons blink at
        blinkingButtonSpeed = 0.025f;
    }
예제 #3
0
 void Start()
 {
     //Sets values for varibles
     compassNeedle = GameObject.Find ("compass_needle").GetComponent<PointTowards> ();
     questInfo = GameObject.Find ("quest_info_text").GetComponent<Text> ();
     counter = 0;
 }