보스 몬스터 Ai 관련 코드 틀 추가
This commit is contained in:
22
Assets/Scripts/AI/State/EPatrolState.cs
Normal file
22
Assets/Scripts/AI/State/EPatrolState.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class EPatrolState : IEnemyState
|
||||
{
|
||||
public void EnterState(EnemyStateManager enemy)
|
||||
{
|
||||
Debug.Log("EPatrolState에서 EnterState 실행");
|
||||
}
|
||||
|
||||
public void UpdateState(EnemyStateManager enemy)
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Tab))
|
||||
{
|
||||
enemy.TransitionToState(new EChaseState());
|
||||
}
|
||||
}
|
||||
|
||||
public void ExitState(EnemyStateManager enemy)
|
||||
{
|
||||
Debug.Log("EPatrolState에서 ExitState 실행");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user