Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        UIMonoBehaviour.UIShow <UIMain>();

        // Test Net

        gameObject.AddComponent <Test>();
    }
Пример #2
0
 public static void Set(this UIMonoBehaviour ui, TMP_Text text, string str)
 {
     if (text != null)
     {
         text.text = str;
         text.gameObject.SetActive(string.IsNullOrEmpty(str) == false);
     }
 }
Пример #3
0
 private void Awake()
 {
     if (_Instance == null)
     {
         _Instance = this;
         DontDestroyOnLoad(gameObject);
     }
 }