Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        boxText.text = "" + boxNumber;                                                  // This will put the box number on the front of the box
        boxContainer = GameObject.Find("Box Container").GetComponent <box_container>(); // This saves our box container script
        bankerScript = GameObject.Find("Banker").GetComponent <banker>();               // This saves our banker script
        dondPanel    = GameObject.Find("Deal or No Deal Panel");                        // This allows us to access the deal or no deal panel quicker

        GetComponent <Button>().onClick.AddListener(DoClick);                           // This tells the button to call DoClick when we click it
    }