Esempio n. 1
0
        private void loadPickaxe(PickaxeDataJson pickaxeData)
        {
            PickaxeData pickaxe = pickaxeData.pickaxe;

            ResourceManager.AddPickaxe(
                pickaxe.id,
                Sprite.Single(ResourceManager.GetTexture(pickaxe.textureName),
                              Vector2.One * 4.0f),
                pickaxe.name,
                pickaxe.hardness,
                (float)pickaxe.damage);
        }