Skip to content

Commit d096156

Browse files
authored
Cleaned Up Code
1 parent 28478c7 commit d096156

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

ObjectPooler.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,10 @@ private void Awake()
3232

3333
void Start()
3434
{
35-
Initialize();
36-
//StartCoroutine(Test());
35+
//Initialize();
3736
}
3837

39-
IEnumerator Test()
40-
{
41-
yield return new WaitForSeconds(0.5f);
42-
print(GetGameObject(0).name);
43-
yield return new WaitForSeconds(0.5f);
44-
print(GetGameObject(1).name);
45-
46-
yield return null;
47-
}
38+
//Call to Initialize the pool
4839
public void Initialize()
4940
{
5041
if (debug) {print("Pooling has started"); timer = Time.realtimeSinceStartup; }
@@ -121,6 +112,5 @@ public struct GameObjectToBePooled
121112
public GameObject gameObjectToBePooled;
122113

123114
[Header("Settings")]
124-
public bool lazyInstantiation;
125115
public bool loadMoreIfNoneLeft;
126-
}
116+
}

0 commit comments

Comments
 (0)