Inheritance: MonoBehaviour
	public GameObject GetPooledObject(EndlessRunner.Parts typeToPool){

			for (int i = 0; i < pooledObjects.Count; i++) {
				if (!pooledObjects[i].go.activeInHierarchy && pooledObjects[i].type == typeToPool) {
					return pooledObjects[i].go;
				}
			}
		if (willGrow) {
			//Randomly select an element out of one list
			GameObject obj = (GameObject)Instantiate(EndlessRunner.currentEndlessRunner.GetGameObjectParts(typeToPool));
			pooledObjects.Add(new pool(){go=obj, type = typeToPool});
			return obj;
		}
		return null;
	}
	/// <summary>
	/// Awake this instance.
	/// </summary>
	void Awake(){
		currentEndlessRunner = this;
	}