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); }
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; }