public void ShotBullet(Entity.BulletEntity bullet) { var bul = Instantiate(bullet.BulletPrefab, _bulletTransform.position, _bulletTransform.rotation); bul.Rigidbody.AddForce(_bulletTransform.forward * bullet.Speed); bul.Power = bullet.Power; }
public GunModel(Entity.BulletEntity _entity) { BulletEntity = _entity; }