mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:45:33 +00:00
20 lines
No EOL
557 B
C#
20 lines
No EOL
557 B
C#
using Cirno.Scripts.Resources;
|
|
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM.Enemy._3D;
|
|
|
|
public partial class EnemyFSMAnimatedSprite3D : AnimatedSprite3D
|
|
{
|
|
[Export] public EnemyProxy3D EnemyProxy { get; private set; }
|
|
|
|
public override void _Ready()
|
|
{
|
|
//EnemyProxy.Initialized += EnemyFsmProxyOnInitialized;
|
|
this.SpriteFrames = EnemyProxy.EnemyResource.AnimationFrames;
|
|
}
|
|
|
|
private void EnemyFsmProxyOnInitialized(EnemyResource resource)
|
|
{
|
|
this.SpriteFrames = resource.AnimationFrames;
|
|
}
|
|
} |