disable gp coin currency correctly

This commit is contained in:
Tyfon
2024-07-09 23:00:39 -07:00
parent 85b9a45493
commit 51754a58e6

View File

@@ -54,7 +54,7 @@ namespace UIFixes
{ {
if (!enabled && gpCoinsTransform != null) if (!enabled && gpCoinsTransform != null)
{ {
UnityEngine.Object.Destroy(gpCoinsTransform); UnityEngine.Object.Destroy(gpCoinsTransform.gameObject);
} }
}); });
} }
@@ -105,7 +105,7 @@ namespace UIFixes
{ {
if (!enabled && gpCoinsTransform != null) if (!enabled && gpCoinsTransform != null)
{ {
UnityEngine.Object.Destroy(gpCoinsTransform); UnityEngine.Object.Destroy(gpCoinsTransform.gameObject);
} }
}); });
} }