1
This commit is contained in:
parent
18a6cb7db8
commit
fa5bee011c
@ -98,16 +98,11 @@ behaviac::EBTStatus BaseAgent::DoRunningCb()
|
||||
|
||||
behaviac::EBTStatus BaseAgent::StartCoroutine(std::shared_ptr<BtCoroutine> coroutine)
|
||||
{
|
||||
#if 1
|
||||
coroutine_ = coroutine;
|
||||
#else
|
||||
#ifdef DEBUG
|
||||
last_status_ = behaviac::BT_INVALID;
|
||||
status_frameno_ = GetOwner()->room->GetFrameNo();
|
||||
status_name_ = name;
|
||||
#endif
|
||||
runing_cb_ = std::move(cb);
|
||||
event_cb_ = std::move(event_cb);
|
||||
status_name_ = coroutine_->name;
|
||||
#endif
|
||||
status_ = behaviac::BT_RUNNING;
|
||||
return status_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user