Get() public static method

public static Get ( ) : LeapUnitySelectionController,
return LeapUnitySelectionController,
Ejemplo n.º 1
0
 void OnTriggerExit(Collider other)
 {
     if (other.tag == "Touchable")
     {
         LeapUnitySelectionController.Get().OnStoppedTouching(gameObject, other);
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Touchable")
     {
         LeapUnitySelectionController.Get().OnTouched(gameObject, other);
     }
 }
Ejemplo n.º 3
0
 void OnCollisionEnter(Collision collision)
 {
     Debug.Log("OnCollisionEnter");
     Debug.Log(gameObject);
     if (collision.collider.tag == "Touchable")
     {
         LeapUnitySelectionController.Get().OnTouched(gameObject, collision.collider);
     }
 }
Ejemplo n.º 4
0
 void FixedUpdate()
 {
     if (gameObject.collider.enabled)
     {
         Debug.DrawRay(transform.position, transform.forward, Color.green);
         RaycastHit hit;
         if (Physics.Raycast(transform.position, transform.forward, out hit, 20.0f))
         {
             LeapUnitySelectionController.Get().OnRayHit(hit);
         }
     }
 }