예제 #1
0
 public static GameObject SpawnGameObject(GameObject prefab, Transform parentTransform = null)
 {
     if (prefab == null)
     {
         return(null);
     }
     return(SpawnUtil.SpawnGameObject(TimelinableConst.Pool_Name, prefab, null, parentTransform));
 }
예제 #2
0
 public static GameObjectPoolCat GetPoolCatGameObject(GameObject prefab)
 {
     return(SpawnUtil.GetOrAddGameObjectPool(TimelinableConst.Pool_Name, prefab, null));
 }
예제 #3
0
 public static void DespawnGameObject(GameObject clone, Transform parentTransform = null)
 {
     SpawnUtil.DespawnGameObject(clone, parentTransform);
 }