public override void PreSerialize(ref AnimationKeyValuePair <T>[] obj, ArchiveMode mode, SerializationStream stream) { if (mode == ArchiveMode.Serialize) { stream.Write(obj.Length); } else if (mode == ArchiveMode.Deserialize) { int length = stream.ReadInt32(); obj = new AnimationKeyValuePair <T> [length]; } }
private void UpdateAnimation(ref AnimationKeyValuePair <T> animationValue) { UpdateAnimation(ref channels.Items[animationValue.ChannelIndex], ref animationValue.Value); }