using System.Collections; using System.Collections.Generic; using DragonLi.Frame; using Mirror; using UnityEngine; public class DoubleTubeBullet : Bullet { [Server] public override void OnSpawn(int ownerIndex, Vector3 recoil, float recoilCount) { base.OnSpawn(ownerIndex, recoil, recoilCount); type = BulletType.QuickBullet; BulletInfo bulletInfo = GameManager.Ins.BulletInfos[type]; damage = bulletInfo.Damage; deToughness = bulletInfo.DeToughness; } public override void OnApplyDamage(IDamagable damagable) { damagable.ApplyDamage(damage, ownerIndex, transform); } }