mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 10:55:54 +00:00
Activable spawners
This commit is contained in:
parent
0b28127970
commit
467fb5be9d
10 changed files with 427 additions and 397 deletions
|
|
@ -23,7 +23,7 @@ public partial class Idle : EnemyStateBase3D
|
|||
|
||||
// player detection
|
||||
// damage receiver will be a module
|
||||
GD.Print("Entered Idle");
|
||||
//GD.Print("Entered Idle");
|
||||
|
||||
_ = DelayStart();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public partial class Idle : EnemyStateBase3D
|
|||
|
||||
// player detection
|
||||
// damage receiver will be a module
|
||||
GD.Print("Entered Idle");
|
||||
//GD.Print("Entered Idle");
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
|
|
@ -60,7 +60,7 @@ public partial class Idle : EnemyStateBase3D
|
|||
private void PlayerDetectionOnPlayerInRange()
|
||||
{
|
||||
_isPlayerInRange = true;
|
||||
GD.Print("Player In Range");
|
||||
//GD.Print("Player In Range");
|
||||
}
|
||||
|
||||
private void PlayerDetectionOnPlayerOutOfRange()
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public partial class Shooting : EnemyStateBase3D
|
|||
{
|
||||
base.EnterState();
|
||||
|
||||
GD.Print("Entering Shooting");
|
||||
//GD.Print("Entering Shooting");
|
||||
|
||||
PlayerDetection.PlayerOutOfRange += PlayerDetectionOnPlayerOutOfRange;
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public partial class Idle : EnemyStateBase
|
|||
private void PlayerDetectionOnPlayerInRange()
|
||||
{
|
||||
_isPlayerInRange = true;
|
||||
GD.Print("Player In Range");
|
||||
//GD.Print("Player In Range");
|
||||
}
|
||||
|
||||
public override void PhysicsProcessState(double delta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue