public override BaseEvent Clone() { SpawnBulletDuration spawnBulletDuration = ClassObjPool <SpawnBulletDuration> .Get(); spawnBulletDuration.CopyData(this); return(spawnBulletDuration); }
protected override void CopyData(BaseEvent src) { base.CopyData(src); SpawnBulletDuration duration = src as SpawnBulletDuration; this.targetId = duration.targetId; this.ActionName = duration.ActionName; this.spawnMax = duration.spawnMax; this.spawnFreq = duration.spawnFreq; this.bRandom = duration.bRandom; this.skillControl = duration.skillControl; this.lastTime = duration.lastTime; this.deltaTime = duration.deltaTime; this.bDeadRemove = duration.bDeadRemove; Array.Resize <VInt3>(ref this.transArray, duration.transArray.Length); for (int i = 0; i < duration.transArray.Length; i++) { this.transArray[i] = duration.transArray[i]; } }