Esempio n. 1
0
    private void OnEnable()
    {
        if (Hand == null)
        {
            Hand = GetComponent <Valve.VR.InteractionSystem.Hand>();
        }

        Debug.Assert(Action != null, "No action assigned");

        mPlayer = GameObject.Find("Player").transform;

        Action.AddOnUpdateListener(OnVector2Update, Hand.handType);
    }