Пример #1
0
        private void CreateBullet(params BulletProperties[] properties)
        {
            var id         = BulletProperties.GetId(properties);
            var projectile = new ProjectileBuiltBullet(properties);

            AddProjectile("builtbullet-" + id, projectile);
            AddItem("itembuiltbullet-" + id, new ItemBuiltBullet(properties, projectile));
        }
Пример #2
0
 public ItemBuiltBullet(BulletProperties[] properties, ProjectileBuiltBullet projectile, string texName = "BuildABullet/Textures/bullet")
 {
     _properties = properties;
     _projectile = projectile;
     Texture     = texName;
 }