示例#1
0
    IEnumerator _LoadConfig(string configPath, ParserWWW wwwParser)
    {
        string sPath = ResourceLoadBase.GetResourceBasePath() + configPath;
        WWW    www   = new WWW(sPath);

        yield return(www);

        wwwParser(www);
    }
示例#2
0
        private IEnumerator LoadMissionConfigData()
        {
            string strImagePath = ResourceLoadBase.GetResourceBasePath() + "Config/MissionConfig.xml";

            GuLog.Debug("MissionConfigPath" + strImagePath);
            WWW www = new WWW(strImagePath);

            yield return(www);

            Parser(www);
        }
        IEnumerator _LoadItemsConfig()
        {
            string strImagePath = ResourceLoadBase.GetResourceBasePath() + "Config/Item.xml";

            GuLog.Debug("ItemsConfigPath" + strImagePath);
            WWW www = new WWW(strImagePath);

            yield return(www);

            Parser(www);
        }