OpenRedAnim.ts 370 B

1234567891011121314151617
  1. import { _decorator, Component, Node, Animation } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('OpenRedAnim')
  4. export class OpenRedAnim extends Component {
  5. @property({ tooltip: "展示红包奖励动画", type: Animation }) private showPrizeAnim: Animation;
  6. start() {
  7. }
  8. public animBack() {
  9. this.showPrizeAnim.play();
  10. }
  11. }