Fix up animations for more enemies
This commit is contained in:
@@ -51,7 +51,7 @@ public partial class DataViewer : Control
|
||||
|
||||
Camera3D.Position = Camera3D.Position.Clamp(new Vector3(0, 0, 1), new Vector3(0, 0, 4));
|
||||
ModelPivot.Rotation = ModelPivot.Rotation.Clamp(Mathf.DegToRad(-60), Mathf.DegToRad(60));
|
||||
_currentModel.SetCurrentDirection(_currentModel.GlobalBasis, CameraPivot.Basis.Z);
|
||||
_currentModel.SetCurrentDirection(_currentModel.GlobalBasis, -CameraPivot.Basis.Z);
|
||||
_currentModel.PlayIdleAnimation();
|
||||
|
||||
if (Input.IsActionJustPressed(GameInputs.Attack))
|
||||
@@ -60,6 +60,8 @@ public partial class DataViewer : Control
|
||||
_currentModel.PlaySecondaryAttackAnimation();
|
||||
if (Input.IsActionJustPressed(GameInputs.Inventory) && _currentModel is ICanActivate canActivate)
|
||||
canActivate.Activate();
|
||||
if (Input.IsActionPressed(GameInputs.StrafeRight))
|
||||
_currentModel.PlayWalkAnimation();
|
||||
|
||||
if (Input.IsActionJustPressed(GameInputs.Next))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user