Пример #1
0
    public void SoundTypeEnabled()
    {
        if (!_PanelNotifications.slidin)
        {
            _PanelNotifications.SlideInPanelNotifications("Sound Enabled", 1.25f);
        }
        PlayerPrefs.SetInt("soundTypeEnabled", 1);
        PlayerPrefs.SetInt("soundTypeDisabled", 0);
        GameObject music_go = GameObject.FindGameObjectWithTag("Music");

        if (music_go == null)
        {
            GameObject newActor = Instantiate(musicPrefab) as GameObject;
        }
        _BirdMovement.InitialiseSound();
        PlayerPrefs.Save();
    }