Skip to content

Commit 9e0d2a2

Browse files
authored
Update README.md
1 parent 113040b commit 9e0d2a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ This pool creates objects that you defined on start and creates additionally if
1313

1414
1. Head to your `hierarchy >> Right Click >> Create Empty`
1515
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
1717

18-
`` public Class ExampleClass : PooledObject``
18+
`` public Class ExampleClass : MonoBehaviour,IPooledObject``
1919

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`)
2121
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).
22-
22+
6. Ready to go !
2323

2424
### To Spawn and Despawn
2525

0 commit comments

Comments
 (0)