private void snapToBed(Vector3 pos) { StopCoroutine("ShowDesireBubble"); State = eBabyState.Sleep; KillAllMovement(); DOTween.Kill(this); transform.position = pos; transform.eulerAngles = m_BedRotation; //m_DummyBedCollider.enabled = false; HideDirectionIndicator(); // In case the baby has already reached the bed while trying to change it's direction. BabyAnimation.Sleep(); m_Bed.ChangeComplete(); DesireBubble.gameObject.SetActive(false); }