Play test animation
This commit is contained in:
@@ -40,6 +40,8 @@ public interface IPlayer : IKillable, ICharacterBody3D
|
||||
|
||||
public IEquipmentComponent EquipmentComponent { get; }
|
||||
|
||||
public void PlayTestAnimation();
|
||||
|
||||
public event Action PlayerDied;
|
||||
public delegate InventoryItem RerollItem(InventoryItem item);
|
||||
}
|
||||
|
||||
@@ -402,6 +402,7 @@ public partial class Game : Node3D, IGame
|
||||
|
||||
private void EnactEffectItemEffects(EffectItem effectItem)
|
||||
{
|
||||
_player.PlayTestAnimation();
|
||||
switch (effectItem.UsableItemTag)
|
||||
{
|
||||
case UsableItemTag.TeleportAllEnemiesToRoom:
|
||||
@@ -450,6 +451,7 @@ public partial class Game : Node3D, IGame
|
||||
|
||||
private void EnactThrowableItemEffects(ThrowableItem throwableItem)
|
||||
{
|
||||
_player.PlayTestAnimation();
|
||||
switch (throwableItem.ThrowableItemTag)
|
||||
{
|
||||
case ThrowableItemTag.DoubleExp:
|
||||
|
||||
@@ -242,6 +242,11 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
|
||||
Settings.MoveSpeed /= 2;
|
||||
}
|
||||
|
||||
public void PlayTestAnimation()
|
||||
{
|
||||
PlayerFXAnimations.Play("test_animation");
|
||||
}
|
||||
|
||||
public void OnPhysicsProcess(double delta)
|
||||
{
|
||||
PlayerLogic.Input(new PlayerLogic.Input.PhysicsTick(delta));
|
||||
|
||||
Reference in New Issue
Block a user