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

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