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

            spawnBulletTick.CopyData(this);
            return(spawnBulletTick);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }