using OpenCVForUnity.CoreModule; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class BodyTurnLeft : PoseBase { public override bool CheckPose(List points) { if (!"LShoulder".IsValid(points) && !"RHip".IsValid(points)) return false; //左转身检测 if (points[YogaConfig.BODY_PARTS["LShoulder"]].x < points[YogaConfig.BODY_PARTS["RHip"]].x) { return true; } return false; } }