lab4
This commit is contained in:
1 parent
fd3a472348
commit
8302032c9f
10 files changed
+2191
-2
No files matched your search
@@ -4,6 +4,7 @@ namespace Code.Base
|
||||
{
|
||||
public class AgentBehaviour : MonoBehaviour
|
||||
{
|
||||
public float weight = 1.0f;
|
||||
public GameObject target;
|
||||
protected Agent Agent;
|
||||
|
||||
@@ -14,7 +15,7 @@ namespace Code.Base
|
||||
|
||||
public virtual void Update()
|
||||
{
|
||||
Agent.SetSteering(GetSteering());
|
||||
Agent.SetSteering(GetSteering(), weight);
|
||||
}
|
||||
|
||||
public virtual Steering GetSteering()
|
||||
|
||||
Reference in new issue
Block a user