diff --git a/README.md b/README.md index 37c19a4..62fd7a1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ -# Cardano games assets for Unity +# Cardano games assets for Unity This repository contains the code and configuration files of Cardano game assets for Unity. diff --git a/src/Blockfrost.io/Editor/ConfigurationEditor.cs b/src/Blockfrost.io/Editor/ConfigurationEditor.cs index 42fa29a..553c7f0 100644 --- a/src/Blockfrost.io/Editor/ConfigurationEditor.cs +++ b/src/Blockfrost.io/Editor/ConfigurationEditor.cs @@ -2,6 +2,7 @@ using System.Linq; using UnityEditor; +#if UNITY_EDITOR using UnityEngine; [CustomEditor(typeof(Blockfrost.Configuration))] @@ -31,3 +32,4 @@ public override void OnInspectorGUI() { EditorUtility.SetDirty(target); } } +#endif diff --git a/src/Blockfrost.io/Scripts/Configuration.cs b/src/Blockfrost.io/Scripts/Configuration.cs index a090d92..c2121f3 100644 --- a/src/Blockfrost.io/Scripts/Configuration.cs +++ b/src/Blockfrost.io/Scripts/Configuration.cs @@ -56,9 +56,13 @@ public class Configuration : ScriptableObject { Url = "cardano-mainnet.blockfrost.io/api/v0", }, new Server{ - Network = "Testnet", - Url = "cardano-testnet.blockfrost.io/api/v0", + Network = "Preview", + Url = "cardano-preview.blockfrost.io/api/v0", }, + // new Server{ + // Network = "Testnet", + // Url = "cardano-testnet.blockfrost.io/api/v0", + // }, }}, { MilkomedaApi, new List{ new Server{ diff --git a/src/Blockfrost.io/Scripts/Model.cs b/src/Blockfrost.io/Scripts/Model.cs index 5642d87..663d59e 100644 --- a/src/Blockfrost.io/Scripts/Model.cs +++ b/src/Blockfrost.io/Scripts/Model.cs @@ -1720,6 +1720,26 @@ public class OnchainMetadata { /// Name of the asset /// public string name; + /// + /// Ipfs image of the asset + /// + public string image; + /// + /// Description of the asset + /// + public string description; + /// + /// Url for a fungible + /// + public string url; + // + /// Logo for a fungible + /// + public string logo; + /// + /// Ticker for a fungible + /// + public string ticker; }