import EventMgr from "../game/EventMgr"; import { GameEvent } from "../game/GameEvent"; const {ccclass, property} = cc._decorator; @ccclass export default class ButtonScale extends cc.Component { private from:number = 0; private to:number = 1.0; start() { } ON_SCREEN_COLOR(SCRENN_COLOR: GameEvent, arg1: this, ON_SCREEN_COLOR: any) { } protected onDestroy(): void { EventMgr.Instance.remove_event_listenner(GameEvent.SCRENN_COLOR, this, this.ON_SCREEN_COLOR); } // update (dt) {} }