Example #1
0
 private bool IsLaserable(GUIQuad quad)
 {
     return(IsWithinRange(quad) && Raycast(quad, out RaycastHit hit));
 }
Example #2
0
 protected override void OnStart()
 {
     base.OnStart();
     _Gui = GetComponent <GUIQuad>();
 }
Example #3
0
 private bool IsOtherWorkingOn(GUIQuad target)
 {
     return(_Other && _Other.LaserVisible && _Other._Target == target && _Other.IsPressing);
 }
Example #4
0
 float GetRange(GUIQuad quad)
 {
     return(Mathf.Clamp(quad.transform.localScale.magnitude * RANGE, RANGE, RANGE * 5) * VR.Settings.IPDScale);
 }
 private bool IsOtherWorkingOn(GUIQuad target)
 {
     return(false);
 }
 private float GetRange(GUIQuad quad)
 {
     return(Mathf.Clamp(quad.transform.localScale.magnitude * 0.25f, 0.25f, 1.25f));
 }