static void __CheckRecycleInstIsDirty(this GameObjectPoolComponent self, string path, GameObject inst, Action callback) { if (!self.__IsOpenCheck()) { callback?.Invoke(); return; } inst.SetActive(false); self.__CheckAfter(path, inst).Coroutine(); callback?.Invoke(); }
static void __InitGoChildCount(this GameObjectPoolComponent self, string path, GameObject go) { if (!self.__IsOpenCheck()) { return; } if (!self.__goChildsCountPool.ContainsKey(path)) { Dictionary <string, int> childsCountMap = new Dictionary <string, int>(); int total_child_count = self.RecursiveGetChildCount(go.transform, "", ref childsCountMap); self.__goChildsCountPool[path] = total_child_count; self.__detailGoChildsCount[path] = childsCountMap; } }