Exemplo n.º 1
0
    void Awake()
    {
        if (GetComponent <SteamVR_InteractTouch>() == null)
        {
            Debug.LogError("SteamVR_InteractGrab is required to be attached to a SteamVR Controller that has the SteamVR_InteractTouch script attached to it");
            return;
        }

        interactTouch     = GetComponent <SteamVR_InteractTouch>();
        trackedController = GetComponent <SteamVR_TrackedObject>();
    }
    private void Awake()
    {
        if (GetComponent<SteamVR_InteractTouch>() == null)
        {
            Debug.LogError("SteamVR_InteractUse is required to be attached to a SteamVR Controller that has the SteamVR_InteractTouch script attached to it");
            return;
        }

        interactTouch = GetComponent<SteamVR_InteractTouch>();
        trackedController = GetComponent<SteamVR_TrackedObject>();
        controllerActions = GetComponent<SteamVR_ControllerActions>();
    }
Exemplo n.º 3
0
    private void Awake()
    {
        if (GetComponent <SteamVR_InteractTouch>() == null)
        {
            Debug.LogError("SteamVR_InteractGrab is required to be attached to a SteamVR Controller that has the SteamVR_InteractTouch script attached to it");
            return;
        }

        interactTouch     = GetComponent <SteamVR_InteractTouch>();
        trackedController = GetComponent <SteamVR_TrackedObject>();
        controllerActions = GetComponent <SteamVR_ControllerActions>();

        world = GameObject.FindGameObjectWithTag("World");
    }