Health/Assets/Scripts/PoseCheck/IsReady.cs

26 lines
675 B
C#
Raw Normal View History

2023-11-07 13:55:35 +00:00
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;
}
}