Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        if (File.Exists(GeneralSettingPath))
        {
            Debug.Log("aaa");
            LoadSettings(GeneralSettingPath);
            WriteStartupLog(LogPath, DateTime.Now + SMDefine.GetSysMsg("Space_Tag") + SMDefine.GetSysMsg("Operation_Tag") + SMDefine.GetSysMsg("OperationMsg_001") + "(" + GeneralSettingPath + ")");
        }
        Define             = GetComponent <GameObjectDefine>();
        SMDefine           = GetComponent <SystemMessageDefine>();
        ItemStr            = GetComponent <ItemString>();
        RDStr              = GetComponent <RandomDialogString>();
        AreaStr            = GetComponent <AreaString>();
        TalkStr            = GetComponent <TalkString>();
        LangLdr            = GetComponent <LanguageLoader>();
        SysSet             = GetComponent <SystemSettings>();
        StringTablePath    = Application.dataPath + "/Resources/stringtable/";
        StringTable_UIPath = StringTablePath + "jp/" + stringtable_UI_FileName;

        GeneralSettingPath = Application.dataPath + "/Resources/GeneralSettings.csv";
        LogPath            = Application.dataPath + "/log/Startup.log";
        if (!Directory.Exists(Application.dataPath + "/log/"))
        {
            Directory.CreateDirectory(Application.dataPath + "/log/");
        }
        if (!File.Exists(LogPath))
        {
            File.Create(LogPath).Close();
        }
        DefineLoadFiles();
        //Debug.Log("File Define Loaded");
        LoadSystemDefine(StringTable_System);
        //Debug.Log("System Define Loaded");
        LoggingSystemInfo();
        //Debug.Log("SystemInfo Loaded");
        LoadFiles();
        //Debug.Log("System Loaded");

        Debug.Log(GeneralSettingPath);


        //GameStartBtnTextPath = GameObject.Find(Define.GameMenu_StartBtnText).GetComponent<Text>();
        //ClickText = GameObject.Find(Define.GameMenu_ClickText).GetComponent<Text>();
    }
Beispiel #2
0
 void Start()
 {
     ItemStr = GetComponent <ItemString>();
     StartCoroutine("UpdateInventoryItems");
 }