void OnReturnFetch(Throwable other) { Debug.Log("Returning object to player"); var pos = playerRef.transform.position; pos.y = transform.position.y; agent.SetDestination(pos); var distance = Vector3.Distance(transform.position, pos); Debug.Log(distance); if (distance < 1.5f) { other.ReturnThrowable(); other.transform.parent = null; ExitBusyWithStateChange(new WanderAround(agent, speed, this)); } }