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

        touch        = gripSphere.AddComponent <ViveGrip_TouchDetection>();
        touch.radius = touchRadius;
    }
Exemple #2
0
    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;
    }