Created
March 26, 2016 19:15
-
-
Save kinifi/5f852e05d428c5a26f81 to your computer and use it in GitHub Desktop.
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
public bool getBool(string key) | |
{ | |
//make the key not case sensitive | |
key = lowerCaseValue(key); | |
//check if the key exists | |
if (m_GameData.ContainsKey(key)) | |
{ | |
bool returnedBool = (bool)m_GameData[key]; | |
//return the string | |
return returnedBool; | |
} | |
else | |
{ | |
//HELP HERE | |
//if the key doesn't exist I need to do something here but not stop the game | |
//what is the appropriate way of doing this? | |
//throw new Exception("Key Does not exist"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment