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