Exemplo n.º 1
0
    private void Awake()
    {
        if (PlayerPrefs.GetInt("FirstPlay" + tutorialID) == 1)
        {
            PlayerPrefs.SetInt("FirstPlay" + tutorialID, 0);
            PlayerPrefs.Save();

            tutorialInterface = GetComponent <GUITutorial>();
            currentState      = tutState.BIG;

            foreach (GameObject obj in normalObjects)
            {
                obj.SetActive(false);
            }
        }
        else
        {
            foreach (GameObject obj in normalObjects)
            {
                obj.SetActive(true);
            }
            tutorialCanvas.gameObject.SetActive(false);
        }

        Debug.Log(tutorialID);
        Debug.Log(PlayerPrefs.GetInt("FirstPlay" + tutorialID));
        Debug.Log(PlayerPrefs.GetInt("FirstPlay"));
    }
Exemplo n.º 2
0
 private void ManageBigTutorial()
 {
     if (textIndex < sceneTutorial.bigMessage.Length)
     {
         LinkInterface(textIndex);
     }
     else
     {
         if (sceneTutorial.smallMessage.Length != 0)
         {
             tutorialInterface.CloseBigTutorial();
             currentState = tutState.SMALL;
             textIndex    = 0;
             LinkInterface(textIndex);
         }
         else
         {
             tutorialInterface.CloseTutorialGeneral();
         }
     }
 }