OnPointerClickDown() public abstract method

public abstract OnPointerClickDown ( ) : void
return void
コード例 #1
0
ファイル: GvrGaze.cs プロジェクト: gabriel-combe/Kinect-SDK
 private void HandleTrigger()
 {
     // If trigger isn't already held.
     if (!isTriggered)
     {
         if (GvrViewer.Instance.Triggered || Input.GetMouseButtonDown(0))
         {
             // Trigger started.
             isTriggered = true;
             if (pointer != null)
             {
                 pointer.OnPointerClickDown();
             }
         }
     }
     else if (!GvrViewer.Instance.Triggered && !Input.GetMouseButton(0))
     {
         // Trigger ended.
         if (pointer != null)
         {
             pointer.OnPointerClickUp();
         }
         if (currentTarget != null)
         {
             currentTarget.OnGazeTrigger();
         }
         isTriggered = false;
     }
 }
コード例 #2
0
 public void OnPointerClickDown()
 {
     GazePointer.OnPointerClickDown();
 }