Пример #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;
    }