buff_xi.ts 452 B

1234567891011121314151617
  1. import { _decorator, Animation, Component, Node } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('buff_xi')
  4. export class buff_xi extends Component {
  5. public playAnimation(){
  6. // this.node.getComponent(Animation).stop(
  7. this.node.getComponent(Animation).crossFade("buff_xi")
  8. }
  9. public finish_ani_1(){
  10. console.log("finish_ani_1")
  11. this.node.getComponent(Animation).crossFade("buff_xi_2")
  12. }
  13. }