Ejemplo n.º 1
0
            /// <summary>
            /// Called when adding a new state to the list to ensure that any other relevant arrays have new
            /// elements added as well.
            /// </summary>
            protected virtual void OnAddElement(int index)
            {
                CurrentAnimations.InsertArrayElementAtIndex(index);

                if (CurrentSpeeds.arraySize > 0)
                {
                    CurrentSpeeds.InsertArrayElementAtIndex(index);
                }

                if (CurrentSynchronizeChildren.arraySize > index)
                {
                    CurrentSynchronizeChildren.InsertArrayElementAtIndex(index);
                }
            }