MissingReferenceException: The object of type 'GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
ObjectPool.GetPooledObject () (at Assets/Scripts/ObjectPool.cs:27)
PlatformGeneration.Update () (at Assets/PlatformGeneration.cs:45)
This is line 27 ObjectPool
if(!pooledObjectList[i].activeInHierarchy)//question if the object in the list is active or not.
This is line 45 PlatformGeneration
GameObject newPlat = objectPool[platformSelection].GetPooledObject();
Image attached, little circle on the left is the destruction point.
![alt text][1]
↧