//private Vector3Int dropoffPoint = new Vector3Int(-8, 5, 0); //private Luggage dropoffItem = new Luggage(); //private Player receiver = null; override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { customer = animator.gameObject.GetComponent <Customer>(); controller = customer.GetComponent <CustomerController>(); this.animator = animator; pod = customer.GetComponentInParent <Pod>(); alarm = pod.GetComponentInChildren <DresserAlarm>(); checkPoint = customer.GetComponentInParent <Bed>().GetItemNode(); SubscribeEvents(); //do the things necessary for the state PerformStateProcesses(); //move the customer to the item node controller.TransportCustomer(checkPoint.GetPositionInTileMap()); }