Example #1
0
 //open character's inventory for player to see
 public void ToggleInventory()
 {
     if (invScr.gameObject.activeInHierarchy)
     {
         invScr.gameObject.SetActive(false);
     }
     else
     {
         invScr.gameObject.SetActive(true);
     }
     //populate item list UI
     if (invScr.isActiveAndEnabled)
     {
         invScr.Refresh(this, Items);
     }
 }