Files
ID/Assets/Code/Base/AgentBehaviour.cs
T
2026-02-06 10:06:04 +03:00

25 lines
474 B
C#

using UnityEngine;
namespace Code.Base
{
public class AgentBehaviour : MonoBehaviour
{
public GameObject target;
protected Agent Agent;
public virtual void Awake()
{
Agent = GetComponent<Agent>();
}
public virtual void Update()
{
Agent.SetSteering(GetSteering());
}
public virtual Steering GetSteering()
{
return new Steering();
}
}
}