Ejemplo n.º 1
0
 public static void Show()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("RegisterAccountUI").GetComponent <RegisterAccountUI>();
     }
 }
Ejemplo n.º 2
0
 public static void ShowChatPanel()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("ChatPanel").GetComponent <ChatPanel>();
     }
 }
Ejemplo n.º 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;
    }
Ejemplo n.º 4
0
 public static void Show()
 {
     if (Instance != null)
     {
         Instance.gameObject.SetActive(true);
     }
     else
     {
         Instance = UISystem.InstantiateUI("DebugUI").GetComponent <DebugUI>();
     }
 }
Ejemplo n.º 5
0
 public static void Show()
 {
     if (instance != null)
     {
         instance.gameObject.SetActive(true);
     }
     else
     {
         instance = UISystem.InstantiateUI("loading").GetComponent <LoadingUI>();
     }
     isLoading = true;
 }
Ejemplo n.º 6
0
 public static void Show()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("hand").GetComponent <Hand>();
         instance.transform.SetAsFirstSibling();
     }
     else
     {
         instance.gameObject.SetActive(true);
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 10
0
    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);
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 12
0
 public static void Show()
 {
     UISystem.InstantiateUI("DisconnectedUI");
 }
Ejemplo n.º 13
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("DeleteWorldUI").GetComponent <DeleteWorldUI>();
 }
Ejemplo n.º 14
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("ItemSelectPanel").GetComponent <ItemSelectPanel>();
 }
Ejemplo n.º 15
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("MainMenu").GetComponent <MainMenu>();
 }
Ejemplo n.º 16
0
 public static void ShowLoginPanel()
 {
     instance = UISystem.InstantiateUI("LoginPanel").GetComponent <LoginPanel>();
 }