public static void Show()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("RegisterAccountUI").GetComponent <RegisterAccountUI>();
     }
 }
Exemple #2
0
 public static void ShowChatPanel()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("ChatPanel").GetComponent <ChatPanel>();
     }
 }
Exemple #3
0
    public static void Show(string content)
    {
        GameObject      obj  = UISystem.InstantiateUI("FastTips");
        TextMeshProUGUI text = obj.transform.Find("RawImage/Image/Text").GetComponent <TextMeshProUGUI>();

        text.text = content;
    }
Exemple #4
0
 public static void Show()
 {
     if (Instance != null)
     {
         Instance.gameObject.SetActive(true);
     }
     else
     {
         Instance = UISystem.InstantiateUI("DebugUI").GetComponent <DebugUI>();
     }
 }
Exemple #5
0
 public static void Show()
 {
     if (instance != null)
     {
         instance.gameObject.SetActive(true);
     }
     else
     {
         instance = UISystem.InstantiateUI("loading").GetComponent <LoadingUI>();
     }
     isLoading = true;
 }
Exemple #6
0
 public static void Show()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("hand").GetComponent <Hand>();
         instance.transform.SetAsFirstSibling();
     }
     else
     {
         instance.gameObject.SetActive(true);
     }
 }
Exemple #7
0
 public static void Show()
 {
     if (Instance != null)
     {
         Instance.gameObject.SetActive(true);
     }
     else
     {
         Instance = UISystem.InstantiateUI("DeathUI").GetComponent <DeathUI>();
     }
     InputManager.enabled = false;
     PlayerController.LockCursor(false);
 }
Exemple #8
0
    public static void Show()
    {
        if (Instance != null)
        {
            Instance.gameObject.SetActive(true);
            Instance.RefreshFullscreenLabel();
        }
        else
        {
            Instance = UISystem.InstantiateUI("SettingsPanel").GetComponent <SettingsPanel>();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Exemple #9
0
    public static void Show()
    {
        if (Instance != null)
        {
            Instance.gameObject.SetActive(true);
            Instance.RefreshUI();
            Instance.RefreshGrabItem();
        }
        else
        {
            Instance = UISystem.InstantiateUI("SurvivalInventory").GetComponent <SurvivalInventory>();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
    public static void Show()
    {
        if (Instance != null)
        {
            Instance.gameObject.SetActive(true);
            Instance.lastStep     = 0;
            Instance.slider.value = 0;
            Instance.RefreshUI();
            Instance.RefreshSelectPanel();
        }
        else
        {
            Instance = UISystem.InstantiateUI("CreativeInventory").GetComponent <CreativeInventory>();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Exemple #11
0
    public static void Show(Vector3Int pos)
    {
        if (Instance != null)
        {
            Instance.pos = pos;
            Instance.gameObject.SetActive(true);
            Instance.InitData();
            Instance.RefreshUI();
            Instance.RefreshGrabItem();
        }
        else
        {
            Instance     = UISystem.InstantiateUI("FurnaceUI").GetComponent <FurnaceUI>();
            Instance.pos = pos;
            Instance.InitData();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Exemple #12
0
 public static void Show()
 {
     UISystem.InstantiateUI("DisconnectedUI");
 }
Exemple #13
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("DeleteWorldUI").GetComponent <DeleteWorldUI>();
 }
Exemple #14
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("ItemSelectPanel").GetComponent <ItemSelectPanel>();
 }
Exemple #15
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("MainMenu").GetComponent <MainMenu>();
 }
Exemple #16
0
 public static void ShowLoginPanel()
 {
     instance = UISystem.InstantiateUI("LoginPanel").GetComponent <LoginPanel>();
 }