Teleport skill added for Chinthe
This commit is contained in:
@@ -15,6 +15,7 @@ public abstract partial class EnemyModelView : Node3D, IEnemyModelView
|
||||
private readonly string _stopWalkName = "Stop Walk";
|
||||
private readonly string _primaryAttackName = "Primary Attack";
|
||||
private readonly string _secondaryAttackName = "Secondary Attack";
|
||||
private readonly string _primarySkillName = "Primary Skill";
|
||||
private readonly string _activateName = "Activate";
|
||||
private readonly string _activateFront = "activate";
|
||||
private readonly string _activateLeft = "activate_left";
|
||||
@@ -32,6 +33,8 @@ public abstract partial class EnemyModelView : Node3D, IEnemyModelView
|
||||
|
||||
public event EventHandler ActivationFinished;
|
||||
|
||||
public event EventHandler TeleportAnimationFinished;
|
||||
|
||||
[Export]
|
||||
public bool CanMove { get; set; } = false;
|
||||
|
||||
@@ -45,7 +48,7 @@ public abstract partial class EnemyModelView : Node3D, IEnemyModelView
|
||||
|
||||
public virtual void PlaySecondaryAttackAnimation() => _stateMachine.Travel(_secondaryAttackName);
|
||||
|
||||
public virtual void PlayPrimarySkillAnimation() => _stateMachine.Travel("Primary Skill");
|
||||
public virtual void PlayPrimarySkillAnimation() => _stateMachine.Travel(_primarySkillName);
|
||||
|
||||
public virtual void PlayIdleAnimation() => _stateMachine.Travel(_idleName);
|
||||
|
||||
@@ -65,6 +68,8 @@ public abstract partial class EnemyModelView : Node3D, IEnemyModelView
|
||||
{
|
||||
if (animName == _activateFront || animName == _activateLeft || animName == _activateRight || animName == _activateBack)
|
||||
ActivationFinished?.Invoke(this, EventArgs.Empty);
|
||||
if (animName == "teleport")
|
||||
TeleportAnimationFinished?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user