Ejemplo n.º 1
0
        private bool DeleteEvents(ref AnimationEvent[] eventList, bool[] deleteIndices)
        {
            bool flag = false;

            for (int index = eventList.Length - 1; index >= 0; --index)
            {
                if (deleteIndices[index])
                {
                    ArrayUtility.RemoveAt <AnimationEvent>(ref eventList, index);
                    flag = true;
                }
            }
            if (flag)
            {
                AnimationEventPopup.ClosePopup();
                this.m_EventsSelected = new bool[eventList.Length];
            }
            return(flag);
        }
        public bool DeleteEvents(ref AnimationEvent[] eventList, bool[] deleteIndices)
        {
            bool flag = false;

            for (int i = eventList.Length - 1; i >= 0; i--)
            {
                if (deleteIndices[i])
                {
                    ArrayUtility.RemoveAt <AnimationEvent>(ref eventList, i);
                    flag = true;
                }
            }
            if (flag)
            {
                this.m_EventsSelected = new bool[eventList.Length];
                this.m_Events         = null;
            }
            return(flag);
        }