Health/Assets/Scripts/PoseCheck/IsReady.cs

26 lines
643 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)
{
2023-11-12 15:09:33 +00:00
if (!"Nose".IsValid(points) &&
!"REar".IsValid(points) &&
!"LEar".IsValid(points) &&
!"Neck".IsValid(points) &&
!"RShoulder".IsValid(points) &&
!"LShoulder".IsValid(points) &&
!"RElbow".IsValid(points) &&
!"LElbow".IsValid(points))
2023-11-07 13:55:35 +00:00
return false;
return true;
}
}