12345678910111213141516171819 |
- using Newtonsoft.Json;
- using UnityEngine;
- public class CloseAutoImmersal : MonoBehaviour
- {
- void Start()
- {
- TextAsset jsonTextAsset = Resources.Load("BlueUserConfig") as TextAsset;
- BlueUserConfig BlueUserConfig = JsonConvert.DeserializeObject<BlueUserConfig>(jsonTextAsset.text);
- if (BlueUserConfig.Auto)
- {
- GameObject.Find("SetBtn/Canvas/Parent/LocalizeBtn").gameObject.SetActive(false);
- }
- }
- }
|