//*/ /// <summary> /// When the player hits the start button, the game will react according /// to the toSelect button /// </summary> void ActivateButton() { MenuButtonsScript._MainMenu(); #region OldActivate /* * if (toSelect == StartGameButton) * { * Debug.Log("Starting Game..."); * //StartGameButton.Select(); * MenuButtonsScript._LobbyMenu(); * } * else if (toSelect == OptionsGameButton) * { * //OptionsGameButton.Select(); * MenuButtonsScript._OptionsMenu(); * } * else if (toSelect == QuitGameButton) * { * //QuitGameButton.Select(); * MenuButtonsScript._QuitGame(); * } * else if (toSelect == CreditsGameButton) * { * //BackGameButton.Select(); * MenuButtonsScript._CreditsMenu(); * } * //*/ #endregion }
//*/ /// <summary> /// When the player hits the start button, the game will react according /// to the toSelect button /// </summary> void ActivateButton() { //* if (toSelect == BackGameButton) { //StartGameButton.Select(); MenuButtonsScript._MainMenu(); } else if (toSelect == CreditsGameButton) { //BackGameButton.Select(); MenuButtonsScript._CreditsMenu(); } //*/ }
/// <summary> /// When the player hits the start button, the game will react according /// to the toSelect button /// </summary> void ActivateButton() { if (toSelect == StartGameButton) { Debug.Log("Starting Game..."); //StartGameButton.Select(); MenuButtonsScript._Level1Scene(); } else if (toSelect == OptionsGameButton) { //OptionsGameButton.Select(); MenuButtonsScript._OptionsMenu(); } else if (toSelect == QuitGameButton) { //QuitGameButton.Select(); MenuButtonsScript._QuitGame(); } else if (toSelect == BackGameButton) { //BackGameButton.Select(); MenuButtonsScript._MainMenu(); } }