How i can make a shop for skybox/background?

Hello friends, someone can help me, please? I want to make a shop where you can buy new Skybox / background with the diamonds you have earned from the game…I don’t have a code for now but at least an idea or an example would help! Thanks in advice!

You could use Scriptable Objects to store player/shop data.
_

_
using UnityEngine;

[CreateAssetMenu(fileName = "PlayerData", menuName = "Data/PlayerData")]
public class PlayerDataScriptableObject : ScriptableObject
{
    public int diamonds;
}

_
Then apply the same logic to store data about if the player “owns” a particular skybox.
_

using UnityEngine;

[CreateAssetMenu(fileName = "ShopData", menuName = "Data/ShopData")]
public class ShopDataScriptableObject : ScriptableObject
{
    public bool skybox56;
}

_
and then have some kind of shop UI with a button that allows them to purchase the skybox.

_

public sealed class ShopManager : MonoBehaviour
{
    public PlayerDataScriptableObject playerData;
    public ShopDataScriptableObject shopData;

    public Button skybox56;

    void Start()
    {
        skybox56.onClick.AddListener(BuySkybox56);
    }

    private void BuySkybox56()
    {
        if (playerData.diamonds > 100)
        {
            shopData.skybox56 = true;
            playerData.diamonds -= 100;
        }
    }
}

You can use “Game Foundation” package. It is not verified yet but easy to use.
For example to sell skybox you just need to create a Inventory Item and add an Asset Detail.