IEnumerator LeaveKitchen() { yield return(new WaitForSeconds(timeBeforeLeave)); actualState = StateDeliveryMan.Leaving; endParticleSystem.Emit(50); //NavMeshAgent agent = GetComponent<NavMeshAgent>(); //agent.destination = ExitPos.position; }
public void ValidateList() { SearchErrorDelivery(); GameManager.Instance.Audio.PlaySound("ConveyorBelt", AudioManager.Canal.SoundEffect); deliveryInstantiation.FillList(); StopInteraction(); actualState = StateDeliveryMan.Changing; }