File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments