File size: 681 Bytes
58c78a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
using UnityEngine;
public class PosePreview : MonoBehaviour
{
public BoundingBox boundingBox;
public BoundingCircle boundingCircle;
public Keypoint[] keypoints;
public void SetActive(bool active)
{
gameObject.SetActive(active);
}
public void SetBoundingBox(bool active, Vector3 position, Vector2 size)
{
boundingBox.Set(active, position, size);
}
public void SetBoundingCircle(bool active, Vector3 position, float radius)
{
boundingCircle.Set(active, position, radius);
}
public void SetKeypoint(int index, bool active, Vector3 position)
{
keypoints[index].Set(active, position);
}
}
|