SupaLidlGame/UI/PostProcessing/StunEffect.cs

16 lines
341 B
C#
Raw Normal View History

2024-03-25 23:46:24 -07:00
using Godot;
namespace SupaLidlGame.UI.PostProcessing;
public partial class StunEffect : ColorRect
{
public override void _Ready()
{
Events.EventBus.Instance.PlayerStun += () =>
{
GD.Print("PLAYER STUNNED!!!");
GetNode<AnimationPlayer>("AnimationPlayer").Play("tighten");
};
}
}