This commit is contained in:
aozhiwei 2023-11-14 13:53:47 +08:00
parent 6971503e32
commit 27d454857c

View File

@ -1316,6 +1316,9 @@ behaviac::EBTStatus HeroAgent::Pickup()
} else if (curr_pickup_obj_.Get()->IsRoomObstacle()) {
RoomObstacle* ob = curr_pickup_obj_.Get()->AsRoomObstacle();
owner_->AsHuman()->ObstacleInteraction(ob);
} else if (curr_pickup_obj_.Get()->IsCar()) {
Car* car = curr_pickup_obj_.Get()->AsCar();
owner_->AsHuman()->DoGetOn(car->GetUniId());
}
return behaviac::BT_SUCCESS;
};