newlon/scripts/gui/WaveFlag.cs
2025-07-17 00:09:24 +05:00

17 lines
425 B
C#

using Godot;
public partial class WaveFlag : TextureRect
{
public int waveIndex;
public double anim_time;
public void HugeWaveApproached(int what)
{
if (waveIndex == what)
{
var tween = CreateTween().SetEase(Tween.EaseType.Out).SetTrans(Tween.TransitionType.Cubic).SetParallel();
tween.TweenProperty(this, "anchor_top", 0.1, anim_time);
tween.TweenProperty(this, "anchor_bottom", 0.1, anim_time);
}
}
}