bool _IsCategoryParentOf(AudioCategory toTest, AudioCategory parent) { var cat = toTest; while (cat != null) { if (cat == parent) { return(true); } cat = cat.parentCategory; } return(false); }
/// <summary> /// Initializes the audio item for a certain category. (Internal use only, not required to call). /// </summary> internal void _Initialize(AudioCategory categ) { category = categ; _NormalizeSubItems(); }