Example #1
0
    public void AddP2Pointer(string handTag)
    {
        P2Laser.SetActive(true);
        ControllerVR P2Hand = P2Laser.GetComponent <ControllerVR>();

        P2Hand.MyHand = GameObject.FindGameObjectWithTag(handTag);
    }
Example #2
0
    public void AssignSelfPointer(string handTag)
    {
        P1Laser.SetActive(true);
        ControllerVR P1Hand = P1Laser.GetComponent <ControllerVR>();

        P1Hand.MyHand = GameObject.FindGameObjectWithTag(handTag);
    }