buff_dun.ts 340 B

123456789101112131415
  1. import { _decorator, Animation, Component, Node } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('buff_dun')
  4. export class buff_dun extends Component {
  5. public init(){
  6. }
  7. public playAnimation(){
  8. // this.node.getComponent(Animation).stop()
  9. this.node.getComponent(Animation).play()
  10. }
  11. }