| 1234567891011121314151617181920 |
- import { _decorator, Component, Node, EventHandler } from 'cc';
- const { ccclass, property } = _decorator;
- @ccclass('PkRedPrizeTurnLight')
- export class PkRedPrizeTurnLight extends Component {
- @property({ tooltip: "动画结束回调", type: EventHandler }) public animBack: EventHandler;
- start() {
- // [3]
- }
- public animBackFun() {
- this.animBack.emit([]);
- }
- // update (deltaTime: number) {
- // // [4]
- // }
- }
|