Пример #1
0
    void Start()
    {
        currentLevel = PlayerPrefs.GetInt("levelSelected", 0);

        //currentLevel = 2;

        fireBar.SetLevel(currentLevel);
        background.sprite = backgroundByLevel[currentLevel];
        beatManager.ConfigureLevel(currentLevel, levelList[currentLevel]);



        catAnimator      = GameObject.FindGameObjectWithTag("Cat").GetComponent <Animator>();
        fogueiraAnimator = GameObject.FindGameObjectWithTag("Fogueira").GetComponent <Animator>();
        girlAnimator     = GameObject.FindGameObjectWithTag("Girl").GetComponent <Animator>();
    }