added a debug mode variable to state controller
if this is checked, then the debug menu will be useable. when building the game, make sure to uncheck the debug mode box to prevent it from coming up in the build
This commit is contained in:
@@ -8,6 +8,9 @@ public class DebugSceneSwitcher : MonoBehaviour
|
||||
{
|
||||
|
||||
void Awake() {
|
||||
if (!GameObject.Find("StateController").GetComponent<StateController>().inDebugMode) {
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
// check to see if a debug canvas already exists
|
||||
if (GameObject.FindGameObjectWithTag("DebugCanvas") != null) {
|
||||
Destroy(this.gameObject);
|
||||
|
||||
Reference in New Issue
Block a user