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
Read Count immediately before adding.
Count
int index = MapTiles.Count; MapTiles.Add(new Class1(num, x * 32 + cameraX, y * 32 + cameraY));