public override BaseEvent Clone() { BattleUiWidgetSwtichTick tick = ClassObjPool <BattleUiWidgetSwtichTick> .Get(); tick.CopyData(this); return(tick); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); BattleUiWidgetSwtichTick tick = src as BattleUiWidgetSwtichTick; this.bAutoAi = tick.bAutoAi; this.bFreeCamera = tick.bFreeCamera; this.bSettingMenu = tick.bSettingMenu; this.bBattleInfoView = tick.bBattleInfoView; this.bPauseBtn = tick.bPauseBtn; this.bResumeBtn = tick.bResumeBtn; this.bTrainingExit = tick.bTrainingExit; this.bDetailInfo = tick.bDetailInfo; this.bTurnOn = tick.bTurnOn; }