private void Start() { movementData = FindObjectOfType <MovementData>(); direction = Vector3.zero; movementData.RegisterObserver(this); }