示例#1
0
        public static AnimationNode Create(AnimationNodeDescription animationNodeDescription, AnimationPackage package)
        {
            Type nodeType = Type.GetType(animationNodeDescription.RuntimeTypeName);

            object[] aniNodeCtorParams = new object[] { animationNodeDescription, package };
            return(Activator.CreateInstance(nodeType, aniNodeCtorParams) as AnimationNode);
        }
示例#2
0
 public static AnimationNode Create(AnimationNodeDescription animationNodeDescription, AnimationPackage package)
 {
     Type nodeType = Type.GetType(animationNodeDescription.RuntimeTypeName);
     object[] aniNodeCtorParams = new object[] { animationNodeDescription, package };
     return Activator.CreateInstance(nodeType, aniNodeCtorParams) as AnimationNode;
 }