Exemplo n.º 1
0
        public static TNode Create <TNode>(
            ControlDriver driver = null,
            TCel[] cels          = null
            ) where TNode : AnimationNode <TCel>
        {
            var instance = CreateInstance <TNode>();

            if (driver != null)
            {
                instance.controlDriver = driver;
            }
            if (cels != null)
            {
                instance.cels = cels;
            }

            return(instance);
        }