You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ This pool creates objects that you defined on start and creates additionally if
13
13
14
14
1. Head to your `hierarchy >> Right Click >> Create Empty`
15
15
2. Add Component >> Object Pooler >> Set size that you wish to add to your project.
16
-
3. Create Script which inherits from PooledObject Class
16
+
3. Create Script which inherits from IPooledObject interface
17
17
18
-
`` public Class ExampleClass : PooledObject``
18
+
`` public Class ExampleClass : MonoBehaviour,IPooledObject``
19
19
20
-
4. Add a type to `enum PooledObjectType` (Can be found under `Assets/Scripts/ObjectPool/PoolderObjectType.cs`)
20
+
4. Add a new type to `enum PooledObjectType` (Can be found under `Assets/Scripts/ObjectPool/PooledObjectType.cs`)
21
21
5. Retrun to the game object you created on hierarchy drag and drop your prefab to Prefab property on objectpooler's pool . Set the tag you wrote on step 4. set size (How many object you want to create on beginning).
0 commit comments