Health/Assets/Scripts/PoseCheck/IsReady.cs

26 lines
675 B
C#

using OpenCVForUnity.CoreModule;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IsReady : PoseBase
{
private bool _isRunning = false;
public override bool CheckPose(List<Point> points)
{
if (!CheckPoint(points, "Nose") &&
!CheckPoint(points, "REar") &&
!CheckPoint(points, "LEar") &&
!CheckPoint(points, "Neck") &&
!CheckPoint(points, "RShoulder") &&
!CheckPoint(points, "LShoulder") &&
!CheckPoint(points, "RElbow") &&
!CheckPoint(points, "LElbow"))
return false;
return true;
}
}