diff --git a/Assets/Scene/StartScene.unity b/Assets/Scene/StartScene.unity index d500fb8..7b26fdd 100644 Binary files a/Assets/Scene/StartScene.unity and b/Assets/Scene/StartScene.unity differ diff --git a/Assets/Scripts/LoadTitle.cs b/Assets/Scripts/LoadTitle.cs new file mode 100644 index 0000000..a1b12a3 --- /dev/null +++ b/Assets/Scripts/LoadTitle.cs @@ -0,0 +1,32 @@ +using Newtonsoft.Json; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using UnityEngine; +using UnityEngine.UI; + +public class LoadTitle : MonoBehaviour +{ + public Text text; + // Start is called before the first frame update + void Start() + { + LoadTitlefunc(); + } + + // Update is called once per frame + void Update() + { + + } + void LoadTitlefunc() + { + string json = null; + string path = Path.Combine(Application.streamingAssetsPath, "Title.json"); + if (File.Exists(path)) + { + json = File.ReadAllText(path); + } + text.text = JsonConvert.DeserializeObject(json); + } +} diff --git a/Assets/Scripts/LoadTitle.cs.meta b/Assets/Scripts/LoadTitle.cs.meta new file mode 100644 index 0000000..8906838 --- /dev/null +++ b/Assets/Scripts/LoadTitle.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d64e4ca3b4bbfe646bf7890bd597e47b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/StreamingAssets/Title.json b/Assets/StreamingAssets/Title.json new file mode 100644 index 0000000..08f4e85 --- /dev/null +++ b/Assets/StreamingAssets/Title.json @@ -0,0 +1 @@ +"-----> 电子沙盘 <-----" \ No newline at end of file diff --git a/Assets/StreamingAssets/Title.json.meta b/Assets/StreamingAssets/Title.json.meta new file mode 100644 index 0000000..b142574 --- /dev/null +++ b/Assets/StreamingAssets/Title.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a3c640d0a8aef9342a2c5f94762ca727 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: