Example #1
0
    public static bool IsControllerOfHand(GameObject checkController, ControllerHand hand)
    {
        if (hand == ControllerHand.Left && SDK_Bridge.IsControllerLeftHand(checkController))
        {
            return(true);
        }

        if (hand == ControllerHand.Right && SDK_Bridge.IsControllerRightHand(checkController))
        {
            return(true);
        }
        return(false);
    }
Example #2
0
 public static ControllerHand GetControllerHand(GameObject controller)
 {
     if (SDK_Bridge.IsControllerLeftHand(controller))
     {
         return(ControllerHand.Left);
     }
     else if (SDK_Bridge.IsControllerRightHand(controller))
     {
         return(ControllerHand.Right);
     }
     else
     {
         return(ControllerHand.None);
     }
 }