Skip to content

Commit

Permalink
fix(spelling): fix spelling error with destination marker event
Browse files Browse the repository at this point in the history
The `SetDestinationMarkerEvent` method was spelt incorrectly.
  • Loading branch information
thestonefox committed Jul 8, 2016
1 parent bf77470 commit b025a41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private void OnTriggerStay(Collider collider)
if (controller && controller.usePressed)
{
var distance = Vector3.Distance(this.transform.position, destination.position);
OnDestinationMarkerSet(SeDestinationMarkerEvent(distance, destination, destination.position, (uint)controller.GetComponent<SteamVR_TrackedObject>().index));
OnDestinationMarkerSet(SetDestinationMarkerEvent(distance, destination, destination.position, (uint)controller.GetComponent<SteamVR_TrackedObject>().index));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public virtual void SetHeadsetPositionCompensation(bool state)
headsetPositionCompensation = state;
}

protected DestinationMarkerEventArgs SeDestinationMarkerEvent(float distance, Transform target, Vector3 position, uint controllerIndex)
protected DestinationMarkerEventArgs SetDestinationMarkerEvent(float distance, Transform target, Vector3 position, uint controllerIndex)
{
DestinationMarkerEventArgs e;
e.controllerIndex = controllerIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected virtual void PointerIn()
return;
}

OnDestinationMarkerEnter(SeDestinationMarkerEvent(pointerContactDistance, pointerContactTarget, destinationPosition, controllerIndex));
OnDestinationMarkerEnter(SetDestinationMarkerEvent(pointerContactDistance, pointerContactTarget, destinationPosition, controllerIndex));

var interactableObject = pointerContactTarget.GetComponent<VRTK_InteractableObject>();
if (interactableObject && interactableObject.pointerActivatesUseAction && interactableObject.holdButtonToUse)
Expand All @@ -188,7 +188,7 @@ protected virtual void PointerOut()
return;
}

OnDestinationMarkerExit(SeDestinationMarkerEvent(pointerContactDistance, pointerContactTarget, destinationPosition, controllerIndex));
OnDestinationMarkerExit(SetDestinationMarkerEvent(pointerContactDistance, pointerContactTarget, destinationPosition, controllerIndex));

var interactableObject = pointerContactTarget.GetComponent<VRTK_InteractableObject>();
if (interactableObject && interactableObject.pointerActivatesUseAction && interactableObject.holdButtonToUse)
Expand Down Expand Up @@ -219,7 +219,7 @@ protected virtual void PointerSet()

if (!playAreaCursorCollided && (interactableObject == null || !interactableObject.pointerActivatesUseAction))
{
OnDestinationMarkerSet(SeDestinationMarkerEvent(pointerContactDistance, pointerContactTarget, destinationPosition, controllerIndex));
OnDestinationMarkerSet(SetDestinationMarkerEvent(pointerContactDistance, pointerContactTarget, destinationPosition, controllerIndex));
}
}

Expand Down

0 comments on commit b025a41

Please sign in to comment.