mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Fixes
This commit is contained in:
1 parent
7baa961a54
commit
8aa47b7163
5 files changed
+11
-9
No files matched your search
@@ -7,10 +7,10 @@ public static class ObjectHelper
|
||||
public static void DestroyTranslator(this GameObject obj)
|
||||
{
|
||||
if (obj == null) return;
|
||||
obj.ForEachChild((Il2CppSystem.Action<GameObject>)DestroyTranslator);
|
||||
obj.ForEachChild((Il2CppSystem.Action<GameObject>)DestroyTranslator); // False error
|
||||
TextTranslatorTMP[] translator = obj.GetComponentsInChildren<TextTranslatorTMP>(true);
|
||||
translator?.Do(Object.Destroy);
|
||||
}
|
||||
|
||||
|
||||
public static void DestroyTranslator(this MonoBehaviour obj) => obj?.gameObject.DestroyTranslator();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user