buff_xing.ts 308 B

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