Last active
October 6, 2017 09:04
-
-
Save AndrewWeston9/7e43c42d32f6150cdec7cfceb9037b5c to your computer and use it in GitHub Desktop.
PlayMove.cs Snippet: Camera pause function when GUI is in use. Created by myself and another team member.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool setUIToFalse = true; | |
public void SetUIOpenTrue() | |
{ | |
UIOpen = true; | |
} | |
public void SetUIOpenFalse() | |
{ | |
UIOpen = false; | |
} | |
if (showInventory == true) | |
{ | |
setUIToFalse = false; | |
SetUIOpenTrue(); | |
print("UI TRUE"); | |
} | |
if (showInventory == false && setUIToFalse == false) | |
{ | |
setUIToFalse = true; | |
SetUIOpenFalse(); | |
print("UI FALSE"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment