When I add an item (an instance of a class) to a list, I need to know the index of the new item. Is it possible with any function?
Example code:
MapT
Class1 newTile = new Class1(num, x*32 + cameraX, y*32 + cameraY); MapTiles.Add(newTile); int index = MapTiles.IndexOf(newTile);