Example #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);
        }
    }
Example #2
0
 public static GameObject GetPrefab(string name)
 {
     return(Resourcer.Get <GameObject>(name));
 }
Example #3
0
 private void InitManagers()
 {
     OTManager.instance.AddOT(Resourcer.Get <TextAsset>(ResConfig.OT).text);
 }