void Start() { controller = GetComponent <ViveGrip_ControllerHandler>(); GameObject gripSphere = InstantiateTouchSphere(); touch = gripSphere.AddComponent <ViveGrip_TouchDetection>(); touch.radius = touchRadius; }
void Start() { grabber = gameObject.AddComponent <ViveGrip_Grabber>(); GameObject gripSphere = InstantiateTouchSphere(); touch = gripSphere.AddComponent <ViveGrip_TouchDetection>(); UpdateRadius(touchRadius, holdRadius); }
void Start() { button = GetComponent <ViveGrip_ButtonManager>(); GameObject gripSphere = InstantiateTouchSphere(); touch = gripSphere.AddComponent <ViveGrip_TouchDetection>(); touch.radius = touchRadius; }