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.

21 lines
467 B

  1. -- 绑定UI
  2. cc.Billboard2DNode.ClassName = "Billboard2DNode"
  3. function cc.Billboard2DNode:createNode()
  4. local layer = cc.Billboard2DNode:create();
  5. return layer;
  6. end
  7. function cc.Billboard2DNode:setDefaults()
  8. end
  9. function cc.Billboard2DNode:loadFromXmlNode(xmlNode)
  10. cc.EffectNode.loadFromXmlNode(self , xmlNode)
  11. end
  12. function cc.Billboard2DNode:getSelectBox()
  13. local box = cc.BoundingBox:new(0,0,0,10,10,10);
  14. box:transform(self:getWorldMatrix());
  15. return box;
  16. end