Пример #1
0
        // Use this for initialization
        private void Awake()
        {
            if (!GameObjectUtil.HasSingleton <SoundManager>())
            {
                GameObjectUtil.RegisterSingleton <SoundManager>(this);
            }

            volume = PlayerPrefs.GetInt("Volume", 1);
            mute   = Convert.ToBoolean(PlayerPrefs.GetInt("Mute", 0));

            soundTemplate = new GameObject("RecycledSound");
            soundTemplate.AddComponent <RecycledSound>();
        }
Пример #2
0
 private void Awake()
 {
     GameObjectUtil.RegisterSingleton <AchievementManager>(this);
 }