This commit is contained in:
aozhiwei 2023-04-05 14:14:51 +08:00
parent 18a6cb7db8
commit fa5bee011c

View File

@ -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_;