//Clear inventory on application quit. private void OnApplicationQuit() { inventory.ClearInventory(); }