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