SupaLidlGame/UI/PostProcessing/Vignette.cs

15 lines
318 B
C#
Raw Normal View History

using Godot;
namespace SupaLidlGame.UI.PostProcessing;
public partial class Vignette : TextureRect
{
public override void _Ready()
{
Events.EventBus.Instance.PlayerHurt += (Events.HurtArgs args) =>
{
GetNode<AnimationPlayer>("AnimationPlayer").Play("tighten");
};
}
}