Beispiel #1
0
        public override BaseEvent Clone()
        {
            SetAttackDirDuration setAttackDirDuration = ClassObjPool <SetAttackDirDuration> .Get();

            setAttackDirDuration.CopyData(this);
            return(setAttackDirDuration);
        }
Beispiel #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            SetAttackDirDuration setAttackDirDuration = src as SetAttackDirDuration;

            this.attackerId = setAttackDirDuration.attackerId;
            this.done_      = setAttackDirDuration.done_;
            this.rotTime_   = setAttackDirDuration.rotTime_;
            this.fromRot    = setAttackDirDuration.fromRot;
            this.toRot      = setAttackDirDuration.toRot;
            this.actor_.Release();
        }