Esempio n. 1
0
        void ResetFilter(object data)
        {
            FieldInfo       field  = serializedObject.targetObject.GetType().GetField((string)data, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public);
            SoundBankFilter filter = field.GetValue(serializedObject.targetObject) as SoundBankFilter;

            filter.Reset();
        }
Esempio n. 2
0
        public override void AddFilter(SoundBankFilter filter)
        {
            base.AddFilter(filter);

            if (filter.IsEnabled)
            {
                for (int i = 0; i < _childSounds.Count; i++)
                {
                    _childSounds[i].AddFilter(filter);
                }
            }
        }