public override BaseEvent Clone() { SpawnBulletTick spawnBulletTick = ClassObjPool <SpawnBulletTick> .Get(); spawnBulletTick.CopyData(this); return(spawnBulletTick); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SpawnBulletTick tick = src as SpawnBulletTick; this.targetId = tick.targetId; this.ActionName = tick.ActionName; this.SpecialActionName = tick.SpecialActionName; this.bDeadRemove = tick.bDeadRemove; }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SpawnBulletTick spawnBulletTick = src as SpawnBulletTick; this.targetId = spawnBulletTick.targetId; this.ActionName = spawnBulletTick.ActionName; this.SpecialActionName = spawnBulletTick.SpecialActionName; this.bDeadRemove = spawnBulletTick.bDeadRemove; this.bAgeImmeExcute = spawnBulletTick.bAgeImmeExcute; this.bulletUpperLimit = spawnBulletTick.bulletUpperLimit; this.bulletTypeId = spawnBulletTick.bulletTypeId; this.bSpawnBounceBullet = spawnBulletTick.bSpawnBounceBullet; }