Ejemplo n.º 1
0
 //returns camera for PC and hand for RV
 Vector3 GetTargetBasedOnPlatform()
 {
     if (platformManager.CurrentVRPlatform == VRPlataform.PC)
     {
         return(pullOrPush ? Camera.main.transform.position : this.transform.position);
     }
     else
     {
         return(pullOrPush ? handsController.GetHandTransform(true).position : this.transform.position);
     }
 }