Пример #1
0
        void GetCustomAnimationFrames(Transform transform, string animation, Frames frames)
        {
            const byte COLUMNS     = 9;
            const byte OFFSET      = COLUMNS * 5 + 1;
            const byte TOTALFRAMES = COLUMNS * 2;

            frames.AddRange(OFFSET, TOTALFRAMES);
            frames.AddDelay(3);

            if (ANIMATION_NAME_SNACK != animation)
            {
                frames.Clear();
            }
        }