This commit is contained in:
aozhiwei 2023-04-04 14:13:22 +08:00
parent 86abb84c23
commit 1d30de1f06
2 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,7 @@ void Room::Init()
void Room::UnInit() void Room::UnInit()
{ {
destorying_ = true;
incubator_->UnInit(); incubator_->UnInit();
#ifdef DEBUG #ifdef DEBUG
UnInitDebugInfo(); UnInitDebugInfo();

View File

@ -223,6 +223,7 @@ public:
bool RandomSafeAreaPoint(glm::vec3& point); bool RandomSafeAreaPoint(glm::vec3& point);
bool FindWalkablePointWithOutHouse(const glm::vec3& center, int try_count, int step, glm::vec3& out_point); bool FindWalkablePointWithOutHouse(const glm::vec3& center, int try_count, int step, glm::vec3& out_point);
void AddReportBullet(int bullet_uniid); void AddReportBullet(int bullet_uniid);
bool IsDestorying() { return destorying_; }
private: private:
void ShuaAndroid(); void ShuaAndroid();
@ -308,6 +309,7 @@ private:
void AutoJump(); void AutoJump();
private: private:
bool destorying_ = false;
std::vector<int> poly_ext_datas_; std::vector<int> poly_ext_datas_;
int room_idx_ = 0; int room_idx_ = 0;
RoomMode_e room_mode_ = kChiJiMode; RoomMode_e room_mode_ = kChiJiMode;