Basic projectile implementation (put sample version in FilthEaterModelView)
This commit is contained in:
@@ -60,4 +60,12 @@ public partial class EngagePlayerBehavior : Node, IEngagePlayerBehavior
|
||||
rng.Randomize();
|
||||
return rng.RandfRange(min, max);
|
||||
}
|
||||
|
||||
public void OnExitTree()
|
||||
{
|
||||
_actionTimer.Stop();
|
||||
_acquireTargetTimer.Stop();
|
||||
_actionTimer.Timeout -= OnAttackTimeout;
|
||||
_acquireTargetTimer.Timeout -= OnAcquireTargetTimeout;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user