GoldContent.ts 614 B

12345678910111213141516171819202122232425262728
  1. // Learn TypeScript:
  2. // - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
  3. // Learn Attribute:
  4. // - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
  5. // Learn life-cycle callbacks:
  6. // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
  7. const { ccclass, property } = cc._decorator;
  8. @ccclass
  9. export default class GoldContent extends cc.Component {
  10. @property(cc.Prefab)
  11. Prefab: cc.Prefab = null;
  12. @property(cc.Node)
  13. Content: cc.Node = null;
  14. onLoad() {
  15. }
  16. start() {
  17. }
  18. // update (dt) {}
  19. }