ButtonScale.ts 534 B

123456789101112131415161718192021222324
  1. import EventMgr from "../game/EventMgr";
  2. import { GameEvent } from "../game/GameEvent";
  3. const {ccclass, property} = cc._decorator;
  4. @ccclass
  5. export default class ButtonScale extends cc.Component {
  6. private from:number = 0;
  7. private to:number = 1.0;
  8. start() {
  9. }
  10. ON_SCREEN_COLOR(SCRENN_COLOR: GameEvent, arg1: this, ON_SCREEN_COLOR: any) {
  11. }
  12. protected onDestroy(): void {
  13. EventMgr.Instance.remove_event_listenner(GameEvent.SCRENN_COLOR, this, this.ON_SCREEN_COLOR);
  14. }
  15. // update (dt) {}
  16. }