scripts 1 var
This commit is contained in:
1 parent
6df424ea8e
commit
1798ac3fc5
10 files changed
+364
No files matched your search
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class AgentBehaviour : MonoBehaviour
|
||||
{
|
||||
public GameObject target;
|
||||
protected Agent agent;
|
||||
|
||||
public virtual void Awake()
|
||||
{
|
||||
agent = gameObject.GetComponent<Agent>();
|
||||
}
|
||||
|
||||
public virtual void Update()
|
||||
{
|
||||
agent.SetSteering(GetSteering());
|
||||
}
|
||||
|
||||
public virtual Steering GetSteering()
|
||||
{
|
||||
return new Steering();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user