private void Awake() { audioSourceMusic.PlayOneShot(fonMusic); cards = new GameObject[amountSuccessfullyCell]; _level = LevelsSettings[DataHolder._levelStart]; LoadLevel(); }
private void NextLevel() { try { Debug.Log("NextLevel"); Debug.Log("ПЕРЕХОД НА УРОВЕНЬ " + nextLevl); _level = LevelsSettings[nextLevl - 1]; currentImageContours[currentLevel - 1].SetActive(false); currentImageCards[currentLevel - 1].SetActive(false); GameObjectLevl[_level.level - 1].SetActive(false); LoadLevel(); } catch { error.SetActive(true); audioSourceMusic.PlayOneShot(stopGameSound); } }