We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0feebb3 commit bad2307Copy full SHA for bad2307
Pool.cs
@@ -32,7 +32,12 @@ public void Fill()
32
currentCount = startCount;
33
34
Poolable original = Object.Instantiate(prefab, holder);
35
- objectInitializator.Process(original.gameObject);
+
36
+ if (objectInitializator != null)
37
+ {
38
+ objectInitializator.Initialize();
39
+ objectInitializator.Dispatch(original.gameObject);
40
+ }
41
42
AddToPool(original);
43
0 commit comments