Health/Assets/Scripts/UI/RobotController.cs

38 lines
756 B
C#
Raw Normal View History

2023-11-07 13:55:35 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Yoga;
public class RobotController : MonoBehaviour
{
2023-11-10 07:17:23 +00:00
public void CheckAction(AvatarAction action)
2023-11-07 13:55:35 +00:00
{
2023-11-10 08:12:37 +00:00
EventManager.Instance.Dispatch(YogaEventType.EstimateAction, action);
2023-11-07 13:55:35 +00:00
}
public void FinishCurrentActionCheck()
{
2023-11-10 08:12:37 +00:00
EventManager.Instance.Dispatch(YogaEventType.ScoreUpdate);
}
public void GetActionBasePoint()
{
EventManager.Instance.Dispatch(YogaEventType.GetActionBasePoint);
2023-11-07 13:55:35 +00:00
}
}
public enum AvatarAction
{
HeadTurnLeft,
HeadTurnRight,
2023-11-10 07:17:23 +00:00
HeadTurnUp,
HeadTurnDown,
2023-11-07 13:55:35 +00:00
LeftLateralHead,
RightLateralHead,
FinishCurrentAction,
2023-11-10 07:17:23 +00:00
HeadShake,
Nod,
HandsUp,
HandsHold,
2023-11-07 13:55:35 +00:00
None
2023-11-10 07:17:23 +00:00
}