// Start is called before the first frame update void Start() { //Get reference to Barista Barista = GameObject.FindGameObjectWithTag("Player"); baristaController = Barista.GetComponent <BaristaController>(); targetQueue = baristaController.targetQueue; }
private void Start() { leftHand = GameObject.FindGameObjectWithTag("LeftHand"); rightHand = GameObject.FindGameObjectWithTag("RightHand"); barista = GameObject.FindGameObjectWithTag("Player"); baristaController = barista.GetComponent <BaristaController>(); targetQueue = baristaController.targetQueue; }
// Start is called before the first frame update void Start() { barista = GameObject.FindGameObjectWithTag("Player").GetComponent <BaristaController>(); }