Add behaviourState + NeutralBehavior
This commit is contained in:
parent
7287be07a9
commit
5bca085548
13 changed files with 123 additions and 11 deletions
14
Assets/Scripts/UnitScripts/BehaviorState/NeutralBehaviour.cs
Normal file
14
Assets/Scripts/UnitScripts/BehaviorState/NeutralBehaviour.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class NeutralBehaviour : AbstractBehaviour
|
||||
{
|
||||
protected override void MoveAction()
|
||||
{
|
||||
Unit.MovementHandler.MoveTowardsNearest();
|
||||
}
|
||||
|
||||
protected override void AttackAction()
|
||||
{
|
||||
Unit.AttackHandler.Attack();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue