private void CreatNewInventory() { SportInventory[] timemas = new SportInventory[inventory.Length + 1]; for (int i = 0; i < inventory.Length; i++) { timemas[i] = inventory[i]; } inventory = timemas; }
public void ShowPointInfo() { Console.Clear(); SportInventory result = null; for (int i = 0; i < inventory.Length; i++) { result = inventory[i] as Points; if (result != null) { Console.WriteLine(inventory[i].AllInventory()); } } }