private bool IsLaserable(GUIQuad quad) { return(IsWithinRange(quad) && Raycast(quad, out RaycastHit hit)); }
protected override void OnStart() { base.OnStart(); _Gui = GetComponent <GUIQuad>(); }
private bool IsOtherWorkingOn(GUIQuad target) { return(_Other && _Other.LaserVisible && _Other._Target == target && _Other.IsPressing); }
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)); }