Esempio n. 1
0
    string TransOrgLog(CommonUtil.LogType type, string log)
    {
        string ret = log;

        switch (type)
        {
        case CommonUtil.LogType.Log:
            ret = (string.Format("[FFFFFF]{0}", log));
            break;

        case CommonUtil.LogType.Warning:
            ret = (string.Format("[FFFF00]{0}", log));
            break;

        case CommonUtil.LogType.Error:
            ret = (string.Format("[FF0000]{0}", log));
            break;
        }

        return(ret);
    }
Esempio n. 2
0
    void LogIncoming(CommonUtil.LogType type, string log)
    {
        UITextList tl = gameObject.GetComponent <UITextList> ();

        tl.Add(TransOrgLog(type, log));
    }