// 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>(); }
private void Awake() { GameObjectUtil.RegisterSingleton <AchievementManager>(this); }