Exemple #1
0
    /// <summary>
    /// Shows the basic help.
    /// </summary>
    void ShowBasicHelp()
    {
        bool isBasicHelpShown = PlayerPrefs.GetInt("isBasicHelpShown", 0) == 0 ? false : true;

        if (!isBasicHelpShown)
        {
            InGameHelp inGameHelp = gameObject.GetComponent <InGameHelp> ();
            if (inGameHelp == null)
            {
                inGameHelp = gameObject.AddComponent <InGameHelp> ();
            }
            inGameHelp.ShowBasicHelp();
        }
    }
Exemple #2
0
    /// <summary>
    /// Checks for help.
    /// </summary>
    public void CheckForHelp()
    {
        bool isHelpShown = false;

        if (GameController.gameMode == GameMode.BLAST || GameController.gameMode == GameMode.ADVANCE || GameController.gameMode == GameMode.TIMED)
        {
            isHelpShown = PlayerPrefs.GetInt("isHelpShown_" + GameController.gameMode.ToString(), 0) == 0 ? false : true;
            if (!isHelpShown)
            {
                InGameHelp inGameHelp = gameObject.AddComponent <InGameHelp> ();
                inGameHelp.StartHelp();
            }
            else
            {
                ShowBasicHelp();
            }
        }
        else
        {
            ShowBasicHelp();
        }
    }