mirror of
https://github.com/360NENZ/Taiga74164-Akebi-GC.git
synced 2025-09-19 12:16:20 +08:00
fix HideUI exception error and unable to re-enable
This commit is contained in:
@ -48,14 +48,16 @@ namespace cheat::feature
|
|||||||
if (ui_camera == nullptr)
|
if (ui_camera == nullptr)
|
||||||
ui_camera = app::GameObject_Find(string_to_il2cppi("/UICamera"), nullptr);
|
ui_camera = app::GameObject_Find(string_to_il2cppi("/UICamera"), nullptr);
|
||||||
|
|
||||||
if (ui_camera)
|
if (ui_camera->fields._.m_CachedPtr != nullptr)
|
||||||
app::GameObject_SetActive(ui_camera, false, nullptr);
|
app::GameObject_SetActive(ui_camera, false, nullptr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ui_camera)
|
if (ui_camera)
|
||||||
{
|
{
|
||||||
|
if (ui_camera->fields._.m_CachedPtr != nullptr)
|
||||||
app::GameObject_SetActive(ui_camera, true, nullptr);
|
app::GameObject_SetActive(ui_camera, true, nullptr);
|
||||||
|
|
||||||
ui_camera = nullptr;
|
ui_camera = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user