// Use this for initialization void Start() { foodMenu = GameObject.FindGameObjectWithTag("FoodMenu"); drinkMenu = GameObject.FindGameObjectWithTag("DrinkMenu"); waiter = GameObject.FindGameObjectsWithTag("NPCwaiter") [0].GetComponent <npcUpW>(); but = GetComponent <Button> (); controller = GameObject.FindGameObjectsWithTag("GameController") [0].GetComponent <GameController> (); }
// Use this for initialization void Start() { waiter = GameObject.FindGameObjectsWithTag("NPCwaiter") [0].GetComponent <npcUpW>(); }