Not perfect but enemies move/attack with animation
This commit is contained in:
@@ -24,13 +24,14 @@ namespace GameJamDungeon
|
||||
|
||||
public Transition On(in Input.AttackTimer input)
|
||||
{
|
||||
return To<Attack>();
|
||||
Output(new Output.Attack());
|
||||
return ToSelf();
|
||||
}
|
||||
|
||||
public Transition On(in Input.EnemyDefeated input)
|
||||
{
|
||||
Output(new Output.Defeated());
|
||||
return ToSelf();
|
||||
return To<Defeated>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user