pkRedPrizeTurnLight.ts 460 B

1234567891011121314151617181920
  1. import { _decorator, Component, Node, EventHandler } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('PkRedPrizeTurnLight')
  4. export class PkRedPrizeTurnLight extends Component {
  5. @property({ tooltip: "动画结束回调", type: EventHandler }) public animBack: EventHandler;
  6. start() {
  7. // [3]
  8. }
  9. public animBackFun() {
  10. this.animBack.emit([]);
  11. }
  12. // update (deltaTime: number) {
  13. // // [4]
  14. // }
  15. }