private void Initialize() { step = 0; var initialPosition = spawnPosition.localPosition; var targetPosition = target.localPosition; unityAgent.model = ForwardAgent.Create(initialPosition, targetPosition, moveSpeed); ResetUnityEntities(initialPosition, targetPosition); }
void Start() { rotate.model = RotateAgent.Create(Quaternion.identity, target.localPosition, 5f); forward.model = ForwardAgent.Create(transform.localPosition, target.localPosition, 1f); }