//Lets the manager now a seat is left so it can go back into the pool, this is done by checking if the positions of the seat in the list and from the customer are the same public void leftSeat(SeatScript seating) { Debug.Log("20"); foreach (SeatScript seat in Seats) { if (seat.gameObject == seating.gameObject) { seat.taken = false; } } }
//When player takes order this script gives the dinosaur an order if there is enough seating available otherwise a prompt public void Ordering() { mySeat = CountertopScript.Instance.anySeat(); if (mySeat != null) { Order = GameManager.Instance.NewOrder(); hasOrdered = true; startSequence(); } else { UIManager.Instance.noAvailableSeats(); } }