Example #1
0
        public void UnregisterScaleKey(int animation, int key)
        {
            Tuple <string, RotationKey[], ScaleKey[], TranslationKey[]> t = AnimationTracks[animation];

            ScaleKey[] scales = new ScaleKey[t.Item3.Length - 1];
            for (int i = 0; i < key; i++)
            {
                scales[i] = t.Item3[i];
            }
            for (int i = key + 1; i < scales.Length; i++)
            {
                scales[i - 1] = t.Item3[i];
            }
            AnimationTracks[animation] = new Tuple <string, RotationKey[], ScaleKey[], TranslationKey[]>(t.Item1, t.Item2, scales, t.Item4);
        }
Example #2
0
 public void SetScaleKey(int animation, int key, ScaleKey scaleKey)
 {
     AnimationTracks[animation].Item3[key] = scaleKey;
 }