Hi, I'm new to behavior designer and I have a couple questions.
1. What's' the use of GetDefaultGameObject, I can't find it in the documentations.
2. Is it better to write my logic inside behavior designer? or call a functions from another script?
1. What's' the use of GetDefaultGameObject, I can't find it in the documentations.
2. Is it better to write my logic inside behavior designer? or call a functions from another script?
Code:
// Pseudocode
1. Write all the code inside the task
action task
var agent = GetComponent<NavmeshAgent>();
agent.SetDestination(target.position)
agent.isStopped = false;
2. Call the functions from another script
action task
var moveScript = GetComponent<MoveScript>();
moveScript.Move(target.position)