1
This commit is contained in:
parent
6971503e32
commit
27d454857c
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user