示例#1
0
    public void START()
    {
        //PlayerPrefs.DeleteKey("TUTORIAL");
        int tutorial = PlayerPrefs.GetInt("TUTORIAL", 1);

        _StartPanel.gameObject.SetActive(false);
        _GamePanel.gameObject.SetActive(true);

        if (tutorial == 1)
        {
            _BackStep = BACK_STEP.HELP;

            _HelpPanel.Show(HELP_TYPE.TUTORIAL, true);
        }
        else
        {
            _BackStep = BACK_STEP.GAME;

            _GameManager.GAMESTART();
        }
    }
示例#2
0
        /// <summary>
        /// Help Button On Click handler.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void HelpButton_Click(object sender, EventArgs e)
        {
            // Keep focus on game
            this.ActiveControl = null;
            HelpButton.TabStop = false;

            // Enable or disable panel
            if (!HelpPanel.Visible)
            {
                HelpPanel.Show();
            }
            else
            {
                HelpPanel.Hide();
            }
        }
 public void ShowHelp()
 {
     audioManager.PlaySelectSound();
     helpPanel.Show();
     Hide();
 }