public static string GetCursorSelectionMethodString(CursorSelectionMethod method) { switch (method) { case CursorSelectionMethod.MouseLeftButton: return("MouseLeftButton"); case CursorSelectionMethod.DwellTime: return("DwellTime"); case CursorSelectionMethod.KeyboardSpaceBar: return("KeyboardSpacebar"); case CursorSelectionMethod.Meta2GrabInteraction: return("Meta2GrabInteraction"); case CursorSelectionMethod.LeapMotionGrabInteraction: return("LeapMotionGrabInteraction"); case CursorSelectionMethod.VIVETriggerButton: return("VIVETrigger"); } return(method.ToString()); }
private new void Start() { base.Start(); currentTargetsCollidingWithCursor = new HashSet <TargetBehaviour>(); selectionMethod = CursorSelectionMethod.KeyboardSpaceBar; }