示例#1
0
        public override BaseEvent Clone()
        {
            SpawnMonsterTick spawnMonsterTick = ClassObjPool <SpawnMonsterTick> .Get();

            spawnMonsterTick.CopyData(this);
            return(spawnMonsterTick);
        }
示例#2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            SpawnMonsterTick spawnMonsterTick = src as SpawnMonsterTick;

            this.TargetId   = spawnMonsterTick.TargetId;
            this.WayPointId = spawnMonsterTick.WayPointId;
            this.ConfigID   = spawnMonsterTick.ConfigID;
            this.LifeTime   = spawnMonsterTick.LifeTime;
            this.tarActor   = spawnMonsterTick.tarActor;
            this.PlayerCamp = spawnMonsterTick.PlayerCamp;
            this.Invincible = spawnMonsterTick.Invincible;
            this.Moveable   = spawnMonsterTick.Moveable;
        }