Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public GameObject inventory;
- //this is posted under each of my states so that you can call the inventory and close it wherever you are in the adventure.
- if(Input.GetKeyDown(KeyCode.I)) {inventory.SetActive(true);}
- if(Input.GetKeyDown(KeyCode.Escape)) {inventory.SetActive (false);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement