private void Start()
        {
            if (_progress <= PlayerPrefs.GetInt("progress"))
            {
                _parts.SetActive(false);
                _zombie.SetActive(true);

                _zombieStats.UpdateStatistics();
                _zombieSelection.ChangeButton(true);

                _buttonUpdateHelper.ZombieSelected += _zombieSelection.ChangeButton;
            }
            else
            {
                _zombieSelection.ChangeButton(false);
            }
        }
Example #2
0
        private void Start()
        {
            // Если прогресс достаточный для открытия
            if (_progress <= PlayerPrefs.GetInt("progress"))
            {
                _parts.SetActive(false);
                _zombie.SetActive(true);

                _zombieStats.UpdateStatistics();
                _zombieSelection.ChangeButton(true);

                // Подписываем обновление кнопок в событие смены персонажа
                _buttonUpdateHelper.ZombieSelected += _zombieSelection.ChangeButton;
            }
            else
            {
                _zombieSelection.ChangeButton(false);
            }
        }