11 lines
195 B
C++
11 lines
195 B
C++
|
/* bt_always_succeed.cpp */
|
||
|
|
||
|
#include "bt_always_succeed.h"
|
||
|
|
||
|
int BTAlwaysSucceed::_tick(float p_delta) {
|
||
|
if (get_child(0)->execute(p_delta) == RUNNING) {
|
||
|
return RUNNING;
|
||
|
}
|
||
|
return SUCCESS;
|
||
|
}
|