Пример #1
0
 /// <summary>
 /// Some interactions happen every frame when the controller is
 /// in a collider
 /// </summary>
 /// <param name="p_collider">P collider.</param>
 void OnTriggerStay(Collider p_collider)
 {
     if (TriggerPressed && !TriggerReset)
     {
         VRButton button = p_collider.GetComponent <VRButton> ( );
         if (button)
         {
             button.ButtonPressed( );
         }
     }
 }