// Update is called once per frame void Update() { if (_actionOnGoing && _customer != null) { if (_timer.IsCompleted && (int)_player._hands == _customer._desiredDrink) { GameManager.instance._Gold += (int)_player._hands; _audio.PlayOneShot(_money); _customer._currentState = CustomerAI.state.Table; _player._hands = PlayerInteraction.hands.Empty; _customer.MoveToState(GameManager.instance.GetSeat(_customer.gameObject)); _counterSeat.CustomerLeave(); _actionOnGoing = false; } } }