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

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

            this.targetId   = findGameObjectDuration.targetId;
            this.objectName = findGameObjectDuration.objectName;
        }