Beispiel #1
0
    void Start()
    {
        text.text = "";
        instance  = this;

        gameObject.SetActive(false);
    }
Beispiel #2
0
 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);
 }