32 lines
719 B
C#
32 lines
719 B
C#
![]() |
using System;
|
||
|
using BlueWaterProject.Type;
|
||
|
|
||
|
namespace BlueWaterProject
|
||
|
{
|
||
|
public class MotionSickState : INpcState
|
||
|
{
|
||
|
public event Action OnUnityEvent;
|
||
|
|
||
|
public void OnEnter(NpcStateMachine npcStateMachine)
|
||
|
{
|
||
|
npcStateMachine.InstantiateObject(DataManager.Inst.vomit, npcStateMachine.transform.position);
|
||
|
OnUnityEvent?.Invoke();
|
||
|
npcStateMachine.RestorePreviousState();
|
||
|
}
|
||
|
|
||
|
public void OnUpdate(NpcStateMachine npcStateMachine)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public void OnExit(NpcStateMachine npcStateMachine)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public INpcState Clone()
|
||
|
{
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|