Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.I))
     {
         InventoryOpen = !InventoryOpen;
         if (InventoryOpen)
         {
             //ShowInventory();
             sInfo.SetResources(10);
         }
         else
         {
             //HideInventory();
         }
     }
     else if (Input.GetKeyDown(KeyCode.C))
     {
         CharacterSheetOpen = !CharacterSheetOpen;
         if (CharacterSheetOpen)
         {
             //ShowCharacterSheet();
         }
         else
         {
             //HideCharacterSheet();
         }
     }
     else if (Input.GetKeyDown(KeyCode.M))
     {
         MiniMapOpen = !MiniMapOpen;
         if (MiniMapOpen)
         {
             //ShowMiniMap();
         }
         else
         {
             //HideMiniMap();
         }
     }
     else if (Input.GetKeyDown(KeyCode.Escape))
     {
         MainMenuOpen = !MainMenuOpen;
         if (MainMenuOpen)
         {
             //ShowMainMenu();
         }
         else
         {
             //HideMainMenu();
         }
     }
 }