You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
149 B

  1. function createActionFromXmlNode(xmlNode)
  2. local instance = cc[xmlNode.ClassName]:create()
  3. instance:loadFromXmlNode(xmlNode);
  4. return instance;
  5. end