maj objectpooler script
This commit is contained in:
parent
16fa9782e0
commit
e0905c1d9c
@ -145,8 +145,6 @@ public class ObjectLoader : MonoBehaviour
|
|||||||
|
|
||||||
void LoadObject()
|
void LoadObject()
|
||||||
{
|
{
|
||||||
// GameObject clone = Instantiate(prefab, spawnPoint.position, spawnPoint.rotation);
|
|
||||||
// this.clone = clone;
|
|
||||||
GameObject clone = ObjectPooler.SharedInstance.GetPooledObject(prefabName);
|
GameObject clone = ObjectPooler.SharedInstance.GetPooledObject(prefabName);
|
||||||
if(clone != null)
|
if(clone != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user