示例#1
0
    private void LoadBaseDataFromLocal()
    {
        mBaseData = new BaseConfigData();
        TextAsset tAsset = Resourcer.Get <TextAsset> (ResConfig.TEXT_ID, "BaseConfigData");

        if (tAsset != null)
        {
            string tConfigStr = tAsset.text;
            mBaseData.Init(tConfigStr);
        }
    }
示例#2
0
 public static GameObject GetPrefab(string name)
 {
     return(Resourcer.Get <GameObject>(name));
 }
示例#3
0
 private void InitManagers()
 {
     OTManager.instance.AddOT(Resourcer.Get <TextAsset>(ResConfig.OT).text);
 }