20 lines
374 B
C#
20 lines
374 B
C#
using UnityEngine;
|
|
|
|
namespace Code.Base
|
|
{
|
|
public class AgentBehaviour : MonoBehaviour
|
|
{
|
|
public GameObject target;
|
|
protected Agent Agent;
|
|
|
|
public virtual void Update()
|
|
{
|
|
Agent.SetSteering(GetSteering());
|
|
}
|
|
|
|
public virtual Steering GetSteering()
|
|
{
|
|
return new Steering();
|
|
}
|
|
}
|
|
} |