예제 #1
0
    void Start()
    {
        controller = GetComponent <ViveGrip_ControllerHandler>();
        GameObject gripSphere = InstantiateTouchSphere();

        touch        = gripSphere.AddComponent <ViveGrip_TouchDetection>();
        touch.radius = touchRadius;
    }
예제 #2
0
    void Start()
    {
        grabber = gameObject.AddComponent <ViveGrip_Grabber>();
        GameObject gripSphere = InstantiateTouchSphere();

        touch = gripSphere.AddComponent <ViveGrip_TouchDetection>();
        UpdateRadius(touchRadius, holdRadius);
    }
예제 #3
0
    void Start()
    {
        button = GetComponent <ViveGrip_ButtonManager>();
        GameObject gripSphere = InstantiateTouchSphere();

        touch        = gripSphere.AddComponent <ViveGrip_TouchDetection>();
        touch.radius = touchRadius;
    }