You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
493 B
28 lines
493 B
using Enemies.States; |
|
using UnityEngine; |
|
|
|
namespace Enemies |
|
{ |
|
public class IdleState: IState |
|
{ |
|
private Enemy context; |
|
public IdleState(Enemy context) |
|
{ |
|
this.context = context; |
|
} |
|
|
|
public void Enter() |
|
{ |
|
Debug.Log("Entering Idle State"); |
|
context.currentState = Enemy.States.Idle; |
|
} |
|
|
|
public void Execute() |
|
{ |
|
} |
|
|
|
public void Exit() |
|
{ |
|
} |
|
} |
|
} |