Example #1
0
        public override BaseEvent Clone()
        {
            DestroyObject destroyObject = ClassObjPool <DestroyObject> .Get();

            destroyObject.CopyData(this);
            return(destroyObject);
        }
Example #2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            DestroyObject destroyObject = src as DestroyObject;

            this.targetId = destroyObject.targetId;
        }
Example #3
0
        public override BaseEvent Clone()
        {
            DestroyObject obj2 = ClassObjPool <DestroyObject> .Get();

            obj2.CopyData(this);
            return(obj2);
        }