Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public GunModel(Entity.BulletEntity _entity)
 {
     BulletEntity = _entity;
 }