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