Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        ingName      = GameObject.Find("ingredientName").GetComponent <Text>();
        ingName.text = "inventory";

        ingAtt      = GameObject.Find("ingredientAttribute").GetComponent <Text>();
        ingAtt.text = " ";

        ingScript = GameObject.Find("preparationArea").GetComponent <ingredientScript>();
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        book = GameObject.Find("Book").GetComponent <bookScript>();

        bubbleLeft  = GameObject.Find("bubbleLeft");
        bubbleRight = GameObject.Find("bubbleRight");

        dialogText  = GameObject.Find("DialogText").GetComponent <Text>();
        charaName   = GameObject.Find("CharaName").GetComponent <Text>();
        requestSlot = GameObject.FindGameObjectWithTag("requestSlot");

        player = GameObject.Find("player sprite").GetComponent <playerScript>();

        list = GameObject.FindGameObjectWithTag("prepArea").GetComponent <ingredientScript>();
        list.setupDictionary();
        request        = list.potions["Potion of Healing"];
        requestAtt     = "Soothing";
        requestSpecial = null;
        charaState     = 1;

        stars = GameObject.FindGameObjectsWithTag("stars").OrderBy(go => go.name).ToArray();
        for (int i = 0; i < stars.Length; i++)
        {
            stars[i].SetActive(false);
        }

        playerInventory = GameObject.FindGameObjectsWithTag("playerInventory");

        back      = GameObject.Find("textBack");
        forward   = GameObject.Find("textForward");
        nextChara = GameObject.Find("nextCustomer");
        endButton = GameObject.Find("endGame");

        nextChara.SetActive(false);
        endButton.SetActive(false);

        dia = new List <string>();
        //list.test();

        charaNum = 0;
        place    = 0;

        enter   = GameObject.Find("enterSound").GetComponent <AudioSource>();
        success = GameObject.Find("successSound").GetComponent <AudioSource>();
    }