public static void HandleInput() { if (Input.GetKeyDown(KeyCode.E)) { //if (GameModeManager.isCreative) // CreativeInventory.Show(); //else SurvivalInventory.Show(); } }
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); }