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); } } }