示例#1
0
    private void ProcParse_UserSetting()
    {
        if (_pJsonParser_Persistent.DoReadJson_FromResource(EINI_JSON_FileName.UserSetting, out _pSetting_User) == false)
        {
            Debug.Log("UserInfo - bParsingResult is Fail");

            _pSetting_User = new SINI_UserSetting();
            _pJsonParser_Persistent.DoWriteJson(EINI_JSON_FileName.UserSetting, _pSetting_User);
        }

        CManagerSound.instance.DoSetVolumeEffect(_pSetting_User.fVolumeEffect);
        CManagerSound.instance.DoSetVolumeBGM(_pSetting_User.fVolumeBGM);
    }
示例#2
0
    static private void OnResult_Login(bool bResult)
    {
        _OnResult_DB(bResult);
        if (bResult)
        {
            if (p_EVENT_OnSuccessLogin != null)
            {
                p_EVENT_OnSuccessLogin();
            }

            _pLoginInfo.strEmailAddress = _strEmailAddress;
            _pLoginInfo.strPassword     = _strPassword;
            _pManagerJson.DoWriteJson(const_strLogInFileName, _pLoginInfo);
        }
    }
示例#3
0
    private void OnFinishParse_AppSetting(bool bResult, SINI_ApplicationSetting sAppSetting)
    {
        // Debug.Log("OnFinishParse_AppSetting strDBName : " + sAppSetting.strDBName + " strPHPPrefix : " + sAppSetting.strPHPPrefix);

        _pSetting_App = sAppSetting;
        if (bResult == false)
        {
            Debug.Log("Error, AppSetting Is Null");
            _pJsonParser_StreammingAssets.DoWriteJson(EINI_JSON_FileName.ApplicationSetting, new SINI_ApplicationSetting());
            return;
        }

        CManagerNetworkDB_Project.instance.DoSetNetworkAddress(sAppSetting.strPHPPrefix, sAppSetting.strDBName);

        //_sSetting_App = sAppSetting;
        //System.Text.StringBuilder pStrBuilder = new System.Text.StringBuilder();
        //for (int i = 0; i < _sSetting_App.arrLogIgnore_Writer.Length; i++)
        //{
        //	pStrBuilder.Append( _sSetting_App.arrLogIgnore_Writer[i] );
        //	DebugCustom.AddIgnore_LogWriterList( _sSetting_App.arrLogIgnore_Writer[i].ConvertEnum<ELogWriter>() );

        //	if (i != _sSetting_App.arrLogIgnore_Writer.Length - 1)
        //		pStrBuilder.Append( ", " );
        //}
        //if (Application.isEditor)
        //	Debug.Log( "OnFinishParse_AppSetting - Debug Ignore Writer List : " + pStrBuilder.ToString() );
        //pStrBuilder.Length = 0;
        //for (int i = 0; i < _sSetting_App.arrLogIgnore_Level.Length; i++)
        //{
        //	pStrBuilder.Append( _sSetting_App.arrLogIgnore_Level[i] );
        //	DebugCustom.AddIgnore_LogLevel( _sSetting_App.arrLogIgnore_Level[i] );

        //	if (i != _sSetting_App.arrLogIgnore_Level.Length - 1)
        //		pStrBuilder.Append( ", " );
        //}

#if UNITY_EDITOR
        int iBundleCode = UnityEditor.PlayerSettings.Android.bundleVersionCode;
        if (_pSetting_App.iBundleCode != iBundleCode)
        {
            _pSetting_App.iBundleCode = iBundleCode;
            _pJsonParser_StreammingAssets.DoWriteJson(EINI_JSON_FileName.ApplicationSetting, _pSetting_App);
        }
#endif

        CheckLoadFinish_LocalDataAll();
    }
示例#4
0
    /* public - [Event] Function
     * 프랜드 객체가 호출                       */

    // ========================================================================== //

    /* private - [Proc] Function
     * 중요 로직을 처리                         */

    static private void Check_And_InitManagerLogin()
    {
        if (_pObjectDummy_ForCoroutine != null)
        {
            return;
        }

        GameObject pObjectDummy = new GameObject("ManagerLogInDummy_ForCoroutine");

        _pObjectDummy_ForCoroutine = pObjectDummy.AddComponent <CCompoTemp>();

        _pManagerJson = SCManagerParserJson.DoMakeInstance(_pObjectDummy_ForCoroutine, const_strLocalPath_INI, EResourcePath.PersistentDataPath);
        if (_pManagerJson.DoReadJson_FromResource <string, SINI_Account>(const_strLogInFileName, out _pLoginInfo) == false)
        {
            _pLoginInfo = new SINI_Account();
            _pManagerJson.DoWriteJson <string>(const_strLogInFileName, _pLoginInfo);
        }
        else
        {
            _strEmailAddress = _pLoginInfo.strEmailAddress;
            _strPassword     = _pLoginInfo.strPassword;
        }
    }