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)
|
behaviac::EBTStatus BaseAgent::StartCoroutine(std::shared_ptr<BtCoroutine> coroutine)
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
coroutine_ = coroutine;
|
coroutine_ = coroutine;
|
||||||
#else
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
last_status_ = behaviac::BT_INVALID;
|
last_status_ = behaviac::BT_INVALID;
|
||||||
status_frameno_ = GetOwner()->room->GetFrameNo();
|
status_frameno_ = GetOwner()->room->GetFrameNo();
|
||||||
status_name_ = name;
|
status_name_ = coroutine_->name;
|
||||||
#endif
|
|
||||||
runing_cb_ = std::move(cb);
|
|
||||||
event_cb_ = std::move(event_cb);
|
|
||||||
#endif
|
#endif
|
||||||
status_ = behaviac::BT_RUNNING;
|
status_ = behaviac::BT_RUNNING;
|
||||||
return status_;
|
return status_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user