- Home /
Question by
Digital-Phantom · Jan 06, 2015 at 07:30 AM ·
javascriptlistgame object
List of objects with limited number availiable?
How would I make a list of game objects that have limited availability? In this case a list of 5 items (1.2.3.4.5) and number 3 is chosen, the list only contains items (1.2.4.5) And so on...
Comment
1: Create List
2: Fill List with objects
3: Choose Object from List
4: Remove chosen object from List
5: Repeat #3.
Are you having any specific problems with any of the steps?
Answer by Berenger · Jan 06, 2015 at 08:08 AM
You can use the generic List by importing System.Collections.Generic, then use the remove function.
http://msdn.microsoft.com/en-us/library/s6hkc2c4(v=vs.110).aspx