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

            reviveTimerTick.CopyData(this);
            return(reviveTimerTick);
        }
コード例 #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            ReviveTimerTick reviveTimerTick = src as ReviveTimerTick;

            this.targetId = reviveTimerTick.targetId;
            this.yOffset  = reviveTimerTick.yOffset;
        }