void Update()
{
if (Input.GetKeyDown (KeyCode.C)) {
if (Pause.IsPaused () && inventory.activeSelf) {
// resume the game
Pause.ResumeGame ();
inventory.SetActive (false);
background.SetActive (false);
} else if (!Pause.IsPaused () && !inventory.activeSelf) {
// pause the game
Pause.PauseGame ();
updateInventorySkillImages ();
// reset the text
HideText ();
inventory.SetActive (true);
background.SetActive (true);
}
}
}