Skip to content

Instantly share code, notes, and snippets.

@AndrewWeston9
Last active October 6, 2017 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewWeston9/7e43c42d32f6150cdec7cfceb9037b5c to your computer and use it in GitHub Desktop.
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.
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