Health/Assets/Scripts/UI/RobotController.cs

38 lines
756 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Yoga;
public class RobotController : MonoBehaviour
{
public void CheckAction(AvatarAction action)
{
EventManager.Instance.Dispatch(YogaEventType.EstimateAction, action);
}
public void FinishCurrentActionCheck()
{
EventManager.Instance.Dispatch(YogaEventType.ScoreUpdate);
}
public void GetActionBasePoint()
{
EventManager.Instance.Dispatch(YogaEventType.GetActionBasePoint);
}
}
public enum AvatarAction
{
HeadTurnLeft,
HeadTurnRight,
HeadTurnUp,
HeadTurnDown,
LeftLateralHead,
RightLateralHead,
FinishCurrentAction,
HeadShake,
Nod,
HandsUp,
HandsHold,
None
}