You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
879 B
C#
35 lines
879 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Autohand
|
|
{
|
|
[CreateAssetMenu(fileName = "AutoHand Pose", menuName = "Auto Hand/Custom Pose", order = 1)]
|
|
public class HandPoseScriptable : ScriptableObject{
|
|
[HideInInspector]
|
|
public bool rightSaved;
|
|
[HideInInspector]
|
|
public bool leftSaved;
|
|
public HandPoseData rightPose;
|
|
public HandPoseData leftPose;
|
|
|
|
public void SavePoses(HandPoseData right, HandPoseData left)
|
|
{
|
|
SaveRightPose(right);
|
|
SaveLeftPose(left);
|
|
}
|
|
|
|
public void SaveRightPose(HandPoseData right)
|
|
{
|
|
rightPose = right;
|
|
rightSaved = true;
|
|
}
|
|
|
|
public void SaveLeftPose(HandPoseData left)
|
|
{
|
|
leftPose = left;
|
|
leftSaved = true;
|
|
}
|
|
}
|
|
}
|