- import { GameLogicMgr, GameLogic } from "./logic";
- export class GameAnimation extends cc.Animation {
- protected update(dt: number): void {
- if(GameLogicMgr.inst.isGamePause) {
- if(this.enabled) this.enabled = false;
- }
- else{
- if(!this.enabled) this.enabled = true;
- }
- }
- }
|