void OnGUI() { foreach (sButton b in lButtons) { b.Draw(); } controller.Draw(); }
void OnGUI() { menuInputPlayerOne.Draw(); menuInputPlayerTwo.Draw(); menuInputPlayerThree.Draw(); menuInputPlayerFour.Draw(); foreach (sButton b in lP1Buttons) { b.Draw(); } foreach (sButton b in lP2Buttons) { b.Draw(); } foreach (sButton b in lP3Buttons) { b.Draw(); } foreach (sButton b in lP4Buttons) { b.Draw(); } }
void OnGUI() { if (!started) { Start(); } createProfileButton.Draw(); //loadProfileButton.Draw(); saveButton.Draw(); editDeleteButton.Draw(); controllerMenuInput.Draw(); if (exitButton.Draw()) { ExitProfilePage(); } profileButtons.ForEach(delegate(sButton obj) { obj.Draw(); }); //textboxes if (loadedProfile != null) { loadedProfile.name = GUI.TextField(rNameText, loadedProfile.name, 10); GUI.Label(rAttackDis, loadedProfile.kAttack.ToString()); GUI.Label(rJumpDis, loadedProfile.kJump.ToString()); GUI.Label(rPauseDis, loadedProfile.kPause.ToString()); GUI.Label(rSwap1Dis, loadedProfile.kSwap1.ToString()); GUI.Label(rSwap2Dis, loadedProfile.kSwap2.ToString()); GUI.Label(rSwap3Dis, loadedProfile.kSwap3.ToString()); GUI.Label(rSwap4Dis, loadedProfile.kSwap4.ToString()); } }