GameAnimation.ts 344 B

12345678910111213
  1. import { GameLogicMgr, GameLogic } from "./logic";
  2. export class GameAnimation extends cc.Animation {
  3. protected update(dt: number): void {
  4. if(GameLogicMgr.inst.isGamePause) {
  5. if(this.enabled) this.enabled = false;
  6. }
  7. else{
  8. if(!this.enabled) this.enabled = true;
  9. }
  10. }
  11. }