/// <summary> /// Instantiate and Init the place content of the places /// </summary> /// <param name="locationData"> The current locationData </param> public void CreateLocationInCarousel(LocationData locationData) { GameObject obj = objectPoolerPlace.GetPooledObject(); PlaceContent placeContent = obj.GetComponent <PlaceContent>(); placeContent.Init(locationData); locationList.Add(placeContent); }