Example #1
0
    public void Update()
    {
        if (Input.GetMouseButtonDown(0) && !greyBG.activeSelf)
        {
            tutorials[next - 1].SetActive(false);

            if (next < tutorials.Count)
            {
                tutorials[next].SetActive(true);

                if (level == 2)
                {
                    switch (next)
                    {
                    case 3:
                        mapButton.Activate();
                        break;

                    case 4:
                        mapButton.Activate();
                        speechUI.SetActive(true);
                        break;

                    case 6:
                        speechUI.SetActive(false);
                        break;
                    }
                }

                next++;
            }
            else
            {
                tracker.removeTutorial();
            }
        }
    }