public static void Show() { if (instance == null) { instance = UISystem.InstantiateUI("RegisterAccountUI").GetComponent <RegisterAccountUI>(); } }
public static void ShowChatPanel() { if (instance == null) { instance = UISystem.InstantiateUI("ChatPanel").GetComponent <ChatPanel>(); } }
public static void Show(string content) { GameObject obj = UISystem.InstantiateUI("FastTips"); TextMeshProUGUI text = obj.transform.Find("RawImage/Image/Text").GetComponent <TextMeshProUGUI>(); text.text = content; }
public static void Show() { if (Instance != null) { Instance.gameObject.SetActive(true); } else { Instance = UISystem.InstantiateUI("DebugUI").GetComponent <DebugUI>(); } }
public static void Show() { if (instance != null) { instance.gameObject.SetActive(true); } else { instance = UISystem.InstantiateUI("loading").GetComponent <LoadingUI>(); } isLoading = true; }
public static void Show() { if (instance == null) { instance = UISystem.InstantiateUI("hand").GetComponent <Hand>(); instance.transform.SetAsFirstSibling(); } else { instance.gameObject.SetActive(true); } }
public static void Show() { if (Instance != null) { Instance.gameObject.SetActive(true); } else { Instance = UISystem.InstantiateUI("DeathUI").GetComponent <DeathUI>(); } InputManager.enabled = false; PlayerController.LockCursor(false); }
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); }
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); }
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); }
public static void Show() { UISystem.InstantiateUI("DisconnectedUI"); }
public static void Show() { instance = UISystem.InstantiateUI("DeleteWorldUI").GetComponent <DeleteWorldUI>(); }
public static void Show() { instance = UISystem.InstantiateUI("ItemSelectPanel").GetComponent <ItemSelectPanel>(); }
public static void Show() { instance = UISystem.InstantiateUI("MainMenu").GetComponent <MainMenu>(); }
public static void ShowLoginPanel() { instance = UISystem.InstantiateUI("LoginPanel").GetComponent <LoginPanel>(); }