mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 21:05:54 +00:00
Spawn boss
This commit is contained in:
parent
a1e87af061
commit
4aa7c2515c
12 changed files with 128 additions and 49 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using Cirno.Scripts.Components.Actors;
|
||||
using System.Threading.Tasks;
|
||||
using Cirno.Scripts.Components.Actors;
|
||||
using Cirno.Scripts.Components.FSM.Enemy;
|
||||
using Cirno.Scripts.Enums;
|
||||
using Godot;
|
||||
|
|
@ -18,9 +19,17 @@ public partial class Idle : EnemyStateBase
|
|||
public override void EnterState()
|
||||
{
|
||||
base.EnterState();
|
||||
DamageReceiver.ChangeState(false);
|
||||
DamageReceiver.ChangeState(false);
|
||||
GD.Print("Boss idle");
|
||||
_ = DelayStart();
|
||||
}
|
||||
|
||||
private async Task DelayStart()
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
ChangeState(EnemyState.Shooting);
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
{
|
||||
base.ExitState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue