protected override void OnPrefabInit()
    {
        base.OnPrefabInit();
        instance = this;
        IEnumerator enumerator = Enum.GetValues(typeof(DebugSoundType)).GetEnumerator();

        try
        {
            while (enumerator.MoveNext())
            {
                DebugSoundType key = (DebugSoundType)enumerator.Current;
                allDebugSoundTypes.Add(key, false);
            }
        }
        finally
        {
            IDisposable disposable;
            if ((disposable = (enumerator as IDisposable)) != null)
            {
                disposable.Dispose();
            }
        }
    }
 protected override void OnCleanUp()
 {
     instance = null;
 }