public override BaseEvent Clone() { SpawnMonsterTick spawnMonsterTick = ClassObjPool <SpawnMonsterTick> .Get(); spawnMonsterTick.CopyData(this); return(spawnMonsterTick); }
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; }