/// <summary> /// Create a new stroke object and parent it to the pointer /// </summary> public override void OnButtonDown() { if (activeMenuItem != null) { SelecteToolMenuItem(activeMenuItem); menuControl.Interrupt(); return; } //Debug.Log ("OnButtonDown"); toolCollection [modeNum].SetToolAbility(true); // If we have a note and it is the one we are pointing at or we dont have have an active note and we are not pointing at one? if (activeNode != null && selectedObject != null && selectedObject.GetComponent <Node> () == activeNode || selectedObject == null && activeNode != null) { switch (currentInputMode) { case InputMode.DRAW: toolCollection [modeNum].SetMoveTarget(rayHitRef); StartDrawStroke(); break; case InputMode.MICROPHONE: StartMicrophone(); break; default: break; } } else { StartMove(); } }