示例#1
0
        protected override void DeserializeProperty(JsonReader reader, string property)
        {
            switch (property)
            {
            case "sampler": _sampler = DeserializeValue <Int32>(reader); break;

            case "target": _target = DeserializeValue <AnimationChannelTarget>(reader); break;

            default: base.DeserializeProperty(reader, property); break;
            }
        }
示例#2
0
 public AnimationChannel(Node targetNode, PathType targetPath, AnimationSampler sampler)
 {
     _target  = new AnimationChannelTarget(targetNode, targetPath);
     _sampler = sampler.LogicalIndex;
 }