Пример #1
0
    // Use this for initialization
    void Start()
    {
        kursiTerisi  = false;
        kursiTerisi2 = false;
        kursiTerisi3 = false;
        kursiTerisi4 = false;

        StartCoroutine(FadingAwal());

        if (TheGame.Level == 1)
        {
            BG1.SetActive(true);
            BG2.SetActive(false);
            BG3.SetActive(false);
        }
        else

        if (TheGame.Level == 2)
        {
            BG1.SetActive(false);
            BG2.SetActive(true);
            BG3.SetActive(false);
        }
        else

        if (TheGame.Level == 3)
        {
            BG1.SetActive(false);
            BG2.SetActive(false);
            BG3.SetActive(true);
        }
        else
        {
            BG1.SetActive(false);
            BG2.SetActive(false);
            BG3.SetActive(false);
        }
    }