mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
25 lines
No EOL
789 B
C#
25 lines
No EOL
789 B
C#
using Cirno.Scripts.Enums;
|
|
using Godot;
|
|
|
|
namespace Cirno.Scripts.Components.FSM.Enemy._3D;
|
|
|
|
public partial class Init : EnemyStateBase3D
|
|
{
|
|
public override EnemyState StateId => EnemyState.Init;
|
|
[Export] public EnemyStorage3D Storage {get; private set;}
|
|
|
|
[Export] public PlayerDetection3D DetectionProvider { get; private set; }
|
|
|
|
public override void EnterState()
|
|
{
|
|
//DamageReceiver.HealthProvider.MaxResource = StorageModule.Root.EnemyResource.MaxHealth;
|
|
DetectionProvider.Initialize(MainObject);
|
|
Storage.AiState = Storage.Root.StartingAiState;
|
|
|
|
Storage.HomePosition = MainObject.GlobalPosition;
|
|
// TODO: Hide wings
|
|
// TODO: Hide aiming reticule
|
|
|
|
StateMachine.SetState(EnemyState.Idle);
|
|
}
|
|
} |