static void Main(string[] args) { OneController oneController = new OneController(); oneController.Form(); oneController.Index(); }
public void BeginInteraction(OneController hand) { // Debug.Log("Interaction Begin"); attachedHand = hand; interactionPoint.position = hand.transform.position; interactionPoint.rotation = hand.transform.rotation; interactionPoint.SetParent(transform, true); currentlyInteracting = true; }
public void EndInteraction(OneController hand) { // Debug.Log("Interaction End"); if (attachedHand == hand) { attachedHand = null; currentlyInteracting = false; } flagRotate = false; }