Esempio n. 1
0
    void dropOffCandy()
    {
        CandyHoleController pile = GameObject.Find("CandyHole").GetComponent <CandyHoleController>();

        pile.candy += candy;
        candy       = 0;
    }
Esempio n. 2
0
 void Start()
 {
     scale = Random.Range(0.34f, 0.6f);
     GetComponent <Transform>().localScale = new Vector3(scale, scale, scale);
     holeController = GameObject.Find("CandyHole").GetComponent <CandyHoleController>();
 }
Esempio n. 3
0
 void Start()
 {
     holeController = GameObject.Find("CandyHole").GetComponent <CandyHoleController>();
     Cursor.SetCursor(cursorDefault, hotSpot, cursorMode);
 }