YwDebug.LogError C# (CSharp) Method

LogError() public static method

public static LogError ( object cMessage ) : void
cMessage object
return void
    public static void LogError(object cMessage)
    {
        #if UNITY_EDITOR
        Debug.LogError(cMessage);
        #else

        #endif
    }

Usage Example

    /**
     * Load an lua file.
     *
     * @param string strFile - The file name without extension.
     * @return bool - true if success, otherwise false.
     */
    public bool DoFile(string strFile)
    {
        if (string.IsNullOrEmpty(strFile))
        {
            return(false);
        }

        // Try to do file.
        try
        {
            // The lua file return the table itself.
            object cChunk = YwLuaScriptMng.Instance.LuaSvr.luaState.doFile(strFile);
            if ((null == cChunk) || !(cChunk is LuaTable))
            {
                return(false);
            }

            // Remember lua table.
            m_cLuaTableOpt = new YwLuaTable((LuaTable)cChunk);
            return(true);
        }
        catch (System.Exception e)
        {
            YwDebug.LogError(YwLuaSvr.FormatException(e));
        }

        return(false);
    }
All Usage Examples Of YwDebug::LogError