コード例 #1
0
        public override BaseEvent Clone()
        {
            BattleUiWidgetSwtichTick tick = ClassObjPool <BattleUiWidgetSwtichTick> .Get();

            tick.CopyData(this);
            return(tick);
        }
コード例 #2
0
        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;
        }