Add files via upload
Some first day fug fixes.
This commit is contained in:
parent
7046716893
commit
a29bc6aba4
7 changed files with 123 additions and 10 deletions
|
@ -66,6 +66,8 @@ Pool pool; //The pool scriptable object goes here
|
|||
Pooler.CreatePools(pool); //Create the pool, without creating it you cannot spawn it
|
||||
Pool[] pools;
|
||||
Pooler.CreatePools(pools); //Create multiple pools
|
||||
Pooler.Destroy(gameObject); //Destroys a GameObject and returns it into the pool scene
|
||||
|
||||
Pooler.SpawnFromPool("Name", Vector3.zero); //Spawns an object into a specific position
|
||||
Pooler.SpawnFromPool("Name", Vector3.zero, Quaternion.identity); //Spawn into a specific position and rotation
|
||||
Pooler.SpawnFromPool("Name", Vector3.zero, transform); //Spawn into a specific position and parent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue