Пример #1
0
    // ===================================== //
    // protected - Unity API                 //
    // ===================================== //

    protected override void OnAwake()
    {
        base.OnAwake();

        _iLocalDataLoadingCount_Request = 0;
        _iLocalDataLoadingCount_Finish  = 0;

        _pJsonParser_Persistent       = SCManagerParserJson.DoMakeInstance(this, "", EResourcePath.PersistentDataPath);
        _pJsonParser_StreammingAssets = SCManagerParserJson.DoMakeInstance(this, const_strLocalPath_INI, EResourcePath.StreamingAssets);
        _pJsonParser_JsonData         = SCManagerParserJson.DoMakeInstance(this, SCManagerParserJson.const_strFolderName, EResourcePath.Resources);

        _pManagerScene = new SCSceneLoader <ENUM_Scene_Name>();
        _pManagerScene.p_EVENT_OnSceneLoaded += ProcOnSceneLoaded;

        ProcParse_UserSetting();

        _iLocalDataLoadingCount_Request++;
        _iLocalDataLoadingCount_Request++;
        _iLocalDataLoadingCount_Request++;
        _pJsonParser_StreammingAssets.DoStartCo_GetStreammingAssetResource_Array <SINI_Sound>(EINI_JSON_FileName.Sound.ToString(), OnParseComplete_SoundSetting);
        _pJsonParser_StreammingAssets.DoStartCo_GetStreammingAssetResource <SINI_ApplicationSetting>(EINI_JSON_FileName.ApplicationSetting.ToString(), OnFinishParse_AppSetting);

        if (CManagerUILocalize.instance == null)
        {
            CManagerUILocalize.EventMakeSingleton();
        }

        CManagerUILocalize.instance.DoStartParse_Locale(CUIManagerLocalize_p_EVENT_OnChangeLocalize);
    }
Пример #2
0
    // ========================================================================== //

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

    private void ProcParse_DialogueEvent(string strDialogueKey)
    {
        List <string> listValue = CManagerUILocalize.DoGetLocalizeValueContains(strDialogueKey);

        int iCount = listValue.Count;

        for (int i = 0; i < iCount; i++)
        {
            string   strValue    = listValue[i];
            string[] arrStrValue = strValue.Split(';');

            string strDialogueText = arrStrValue[0];
            string strMethodName   = arrStrValue[1];

            if (string.IsNullOrEmpty(strDialogueText) == false)
            {
                _mapDialogueText.Add(i, strDialogueText);
            }

            if (string.IsNullOrEmpty(strMethodName) == false)
            {
                print(strMethodName);
            }
        }

        _iMaxDialogueScene = iCount - 1;
    }