i want to make BT like the following codes.
int count = 0; // global variable
int maxCount = 10; // global variable
while( count < maxCount ){
count = count + 1; // how to convert this code to BT task?
Debug.Log( count );
yield return new WaitForSeconds(1);
}
Repeater Task : count = 10
Wait Task : waitTime = 1
int count = 0; // global variable
int maxCount = 10; // global variable
while( count < maxCount ){
count = count + 1; // how to convert this code to BT task?
Debug.Log( count );
yield return new WaitForSeconds(1);
}
Repeater Task : count = 10
Wait Task : waitTime = 1