2019-08-03 17:36:17 +02:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Saltosion.OneWeapon.AI {
|
|
|
|
|
public abstract class Behaviour : MonoBehaviour {
|
2019-08-03 18:14:47 +02:00
|
|
|
|
/* Returns whether or not Execute() should be called this frame */
|
2019-08-03 17:36:17 +02:00
|
|
|
|
public abstract bool CanBehave(Enemy subject);
|
|
|
|
|
/* Returns whether or not this was a blocking behaviour, ie. should the behaviour processing be stopped here */
|
|
|
|
|
public abstract bool Execute(Enemy subject);
|
|
|
|
|
}
|
|
|
|
|
}
|