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