Esempio n. 1
0
    private void Initialize()
    {
        step = 0;
        var initialPosition = spawnPosition.localPosition;
        var targetPosition  = target.localPosition;

        unityAgent.model = ForwardAgent.Create(initialPosition, targetPosition, moveSpeed);
        ResetUnityEntities(initialPosition, targetPosition);
    }
Esempio n. 2
0
 void Start()
 {
     rotate.model  = RotateAgent.Create(Quaternion.identity, target.localPosition, 5f);
     forward.model = ForwardAgent.Create(transform.localPosition, target.localPosition, 1f);
 }