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); }
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); } }