void Start() { text.text = ""; instance = this; gameObject.SetActive(false); }
public static void LogMobile(string message, string channel) { if (!Variables.Instance.debugBuild) { return; } if (mobileDebugger == null) { GameObject obj = GameObject.Instantiate(Resources.Load("Mobile_Debugger")) as GameObject; obj.transform.SetAsLastSibling(); mobileDebugger = obj.GetComponentInChildren <MobileDebugger> (); } mobileDebugger.LogMessage(message, channel); }