Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void AddItem(string item)
- {
- arrayItems[Array.IndexOf(arrayItems, null)] = item;
- //for (int i = 0; i < arrayItems.Length; i++)
- //{
- // if (arrayItems[i] == null)
- // {
- // arrayItems[i] = item;
- // break;
- // }
- //}
- Console.WriteLine("{0} has been added to your inventory", item);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement