mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
16 lines
No EOL
408 B
C#
16 lines
No EOL
408 B
C#
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM.Enemy;
|
|
|
|
public partial class EnemyFSMAnimatedSprite : AnimatedSprite2D
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
var enemyFsmProxy = this.GetParentOrNull<EnemyFSMProxy>();
|
|
|
|
if (enemyFsmProxy?.EnemyResource?.AnimationFrames != null)
|
|
{
|
|
this.SpriteFrames = enemyFsmProxy.EnemyResource.AnimationFrames;
|
|
}
|
|
}
|
|
} |