/// <summary> /// 执行攻击 /// </summary> /// <param name="aimEntityID"></param> /// <param name="ownerAtk"></param> private void DoAttack(int ownerAtk) { CachedTransform.forward = parentTransform.forward; BulletData bulletData = new BulletData( EntityExtension.GenerateSerialId(), weaponData.BulletId, CachedTransform.forward, weaponData.OwnerCamp, weaponData.Attack + ownerAtk, weaponData.BulletSpeed ); bulletData.Position = CachedTransform.position; EntityExtension.ShowBullet(typeof(Bullet), "BulletGroup", bulletData); //GameEntry.Sound.PlaySound(weaponData.BulletSoundId); }