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)
{
#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_;