Layout_gift.ts 485 B

1234567891011121314151617181920
  1. import { _decorator, Button, Component, Node, ProgressBar, SpriteFrame } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('Layout_gift')
  4. export class Layout_gift extends Component {
  5. @property(Button)
  6. cloose_btn: Button;
  7. @property(Button)
  8. watch_btn: Button;
  9. @property(ProgressBar)
  10. progress: ProgressBar;
  11. @property([Node])
  12. show: Node[]=[];
  13. @property([SpriteFrame])
  14. curSprite: SpriteFrame[] = [];
  15. coin:number[]=[300,500,800]
  16. }