private void InitControls() { GUILayout.BeginHorizontal(); if (GUILayout.Button("Previous Page")) { inventoryController.SetActivePage(-1); OnPageChanged(); } if (GUILayout.Button("+")) { inventoryController.AddPage(); OnPageChanged(); } if (GUILayout.Button("Next Page")) { inventoryController.SetActivePage(1); OnPageChanged(); } GUILayout.EndHorizontal(); if (GUILayout.Button("Clear All")) { inventoryController.ClearPrefs(); dragStartedInWindow = false; OnPageChanged(); } }