Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        GameManager.Loading.SetActive(false);
        Tuto1 = GameObject.Find("Tuto1");
        Tuto2 = GameObject.Find("Tuto2");
        Tuto3 = GameObject.Find("Tuto3");
        Tuto4 = GameObject.Find("Tuto4");
        Tuto5 = GameObject.Find("Tuto5");
        Tuto6 = GameObject.Find("Tuto6");

        Tuto1.SetActive(true);
        Tuto2.SetActive(false);
        Tuto3.SetActive(false);
        Tuto4.SetActive(false);
        Tuto5.SetActive(false);
        Tuto6.SetActive(false);

        GameManager.Status = GameState.Tutoriel1;
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        switch (GameManager.Status)
        {
        case GameState.Tutoriel1:
            Tuto1.SetActive(true);
            break;

        case GameState.Tutoriel2:
            Tuto1.SetActive(false);
            Tuto2.SetActive(true);
            break;

        case GameState.Tutoriel3:
            Tuto2.SetActive(false);
            Tuto3.SetActive(true);
            break;

        case GameState.Tutoriel4:
            Tuto3.SetActive(false);
            Tuto4.SetActive(true);
            break;

        case GameState.Tutoriel5:
            Tuto4.SetActive(false);
            Tuto5.SetActive(true);
            break;

        case GameState.Tutoriel6:
            Tuto5.SetActive(false);
            Tuto6.SetActive(true);
            break;

        case GameState.FinTuto:
            Tuto6.SetActive(false);
            GameManager.Loading.SetActive(true);
            GameManager.Loading.GetComponent <LoadingScreen>().Loading(0);
            break;
        }
    }