cirnogodot/Scripts/Components/FSM/Enemy/3D/EnemyFSMAnimatedSprite3D.cs
2025-06-21 15:41:29 +02:00

16 lines
No EOL
413 B
C#

using Godot;
namespace Cirno.Scripts.Components.FSM.Enemy._3D;
public partial class EnemyFSMAnimatedSprite3D : AnimatedSprite3D
{
public override void _Ready()
{
var enemyFsmProxy = this.GetParentOrNull<EnemyProxy3D>();
if (enemyFsmProxy?.EnemyResource?.AnimationFrames != null)
{
this.SpriteFrames = enemyFsmProxy.EnemyResource.AnimationFrames;
}
}
}