Пример #1
0
        public void UnregisterRotationKey(int animation, int key)
        {
            Tuple <string, RotationKey[], ScaleKey[], TranslationKey[]> t = AnimationTracks[animation];

            RotationKey[] rotations = new RotationKey[t.Item2.Length - 1];
            for (int i = 0; i < key; i++)
            {
                rotations[i] = t.Item2[i];
            }
            for (int i = key + 1; i < rotations.Length; i++)
            {
                rotations[i - 1] = t.Item2[i];
            }
            AnimationTracks[animation] = new Tuple <string, RotationKey[], ScaleKey[], TranslationKey[]>(t.Item1, rotations, t.Item3, t.Item4);
        }
Пример #2
0
 public void SetRotationKey(int animation, int key, RotationKey rotationKey)
 {
     AnimationTracks[animation].Item2[key] = rotationKey;
 }