private void OnValidate_UCE_Tools()
    {
#if UNITY_EDITOR
        if (databaseType == NetworkManagerMMO.DatabaseType.SQLite)
        {
            UCE_EditorTools.RemoveScriptingDefine(DB_MYSQL);
            UCE_EditorTools.AddScriptingDefine(DB_SQLITE);
        }
        else if (databaseType == NetworkManagerMMO.DatabaseType.mySQL)
        {
            UCE_EditorTools.RemoveScriptingDefine(DB_SQLITE);
            UCE_EditorTools.AddScriptingDefine(DB_MYSQL);
        }
#endif
    }
    // -----------------------------------------------------------------------------------
    // OnValidate
    // -----------------------------------------------------------------------------------
    public void OnValidate()
    {
#if UNITY_EDITOR
        if (isServer && !isClient)
        {
            UCE_EditorTools.RemoveScriptingDefine(IS_CLIENT);
            UCE_EditorTools.AddScriptingDefine(IS_SERVER);
        }
        else if (isClient && !isServer)
        {
            UCE_EditorTools.RemoveScriptingDefine(IS_SERVER);
            UCE_EditorTools.AddScriptingDefine(IS_CLIENT);
        }
        else
        {
            UCE_EditorTools.AddScriptingDefine(IS_CLIENT);
            UCE_EditorTools.AddScriptingDefine(IS_SERVER);
        }
#endif
    }
    // -----------------------------------------------------------------------------------
    // UpdateDefines
    // -----------------------------------------------------------------------------------
    public void UpdateDefines()
    {
#if UNITY_EDITOR
        for (int i = 0; i < addons.Count(); ++i)
        {
            if (addons[i].define == "_iMMOTOOLS" && addons[i].define == "_iMMOCORE")
            {
                continue;
            }

            if (!addons[i].active)
            {
                UCE_EditorTools.RemoveScriptingDefine(addons[i].define);
            }
            else
            {
                UCE_EditorTools.AddScriptingDefine(addons[i].define);
            }
        }
#endif
    }