public static GameObject SpawnGameObject(GameObject prefab, Transform parentTransform = null) { if (prefab == null) { return(null); } return(SpawnUtil.SpawnGameObject(TimelinableConst.Pool_Name, prefab, null, parentTransform)); }
public static GameObjectPoolCat GetPoolCatGameObject(GameObject prefab) { return(SpawnUtil.GetOrAddGameObjectPool(TimelinableConst.Pool_Name, prefab, null)); }
public static void DespawnGameObject(GameObject clone, Transform parentTransform = null) { SpawnUtil.DespawnGameObject(clone, parentTransform); }