Exemple #1
0
    private static void PrintALine(string pStr, bool WichTig = false)
    {
        if (mDisableLog)
        {
            return;
        }
        RuntimePlatform plat = Application.platform;

        if (AgStt.DebugOnDevice)
        {
            if (WichTig)
            {
                AgStt.arrLogWichtig.Add(pStr);
            }
            else
            {
                AgStt.arrLogOnDevice.Add(pStr);
            }
            AgStt.SetDeviceLog();
            return;
        }

        string theTime = "< " + DateTime.Now.Minute + " : " + DateTime.Now.Second + " >    ";

        if (plat == RuntimePlatform.OSXEditor || plat == RuntimePlatform.Android)
        {
            Debug.Log(theTime + pStr);
        }
        if (plat == RuntimePlatform.IPhonePlayer)
        {
            GeneralFunction.NativeLog("U3D_C# : " + theTime + pStr);
        }
    }
Exemple #2
0
    public static void HtLog(this string pStr)
    {
        if (AgStt.DebugOnDevice)
        {
            AgStt.arrLogOnDevice.Add(pStr + "\n");
            AgStt.SetDeviceLog();
            return;
        }
        string theTime = "< " + DateTime.Now.Minute + " : " + DateTime.Now.Second + " >    ";

        if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.Android)
        {
            Debug.Log(theTime + " HtLOG >> " + pStr + " \n");
        }
        else
        {
            //GeneralFunction.NativeLog("Ag.LogString  >>>>>>>>>>>>>>>>>>>> [ " + pStr + " ]");
            GeneralFunction.NativeLog("UNITY C# Log :: " + pStr);
        }
    }