using System.Collections; using System.Collections.Generic; using UnityEngine.UI; using UnityEngine; public class developerMode : MonoBehaviour { public string output = ""; public string stack = ""; public bool cheatsAllowed; GameObject pnlCanvas; GameObject pnlCheats; Button btnToggleCheats; Text lblConsoleLog; bool developerModeActive; bool cheatMenuOpen; void Start () { /* Panels */ pnlCanvas = this.gameObject.transform.GetChild (0).gameObject; pnlCheats = pnlCanvas.transform.Find ("cheatMenu").gameObject; /* Buttons */ /* Button handlers */ /* Lablels */ lblConsoleLog = pnlCanvas.transform.Find ("consoleLog").gameObject.GetComponent (); /* Do setup */ lblConsoleLog.text = ""; if (cheatsAllowed) { btnToggleCheats = pnlCanvas.transform.Find ("toggleCheats").gameObject.GetComponent