Refactor stats
This commit is contained in:
@@ -28,11 +28,15 @@ public partial class PatrolBehavior : Node3D, IBehavior
|
||||
|
||||
[Signal] public delegate void OnVelocityComputedEventHandler(Vector3 safeVelocity);
|
||||
|
||||
public void OnReady()
|
||||
public PatrolBehavior()
|
||||
{
|
||||
_patrolTimer = new Timer() { WaitTime = _patrolTime };
|
||||
_patrolTimer.Timeout += PatrolTimer_Timeout;
|
||||
AddChild(_patrolTimer);
|
||||
}
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
SetPhysicsProcess(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user