mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 13:05:54 +00:00
Face player towards aim direction
This commit is contained in:
parent
8eba34915d
commit
25a9bc1d78
9 changed files with 75 additions and 58 deletions
|
|
@ -15,11 +15,12 @@ public partial class Cutscene : PlayerStateBase
|
|||
|
||||
public override void ExitState()
|
||||
{
|
||||
_animationProvider.SetAnimation(Vector2.Zero);
|
||||
_animationProvider.SetAnimationSpeed(Vector2.Zero);
|
||||
}
|
||||
|
||||
public override void ProcessState(double delta)
|
||||
{
|
||||
_animationProvider.SetAnimationSpeed(MainObject.Velocity);
|
||||
_animationProvider.SetAnimation(MainObject.Velocity);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue