16 lines
354 B
C#
16 lines
354 B
C#
using Godot;
|
|
|
|
namespace SupaLidlGame.UI.PostProcessing;
|
|
|
|
public partial class Vignette : TextureRect
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
Events.EventBus.Instance.PlayerHurt += (Events.HurtArgs args) =>
|
|
{
|
|
GD.Print("TIGHTEN!!!");
|
|
GetNode<AnimationPlayer>("AnimationPlayer").Play("tighten");
|
|
};
|
|
}
|
|
}
|