void Start() { _levelBuilder = GetComponent <LevelBuilder>(); OnBuilding(); //_levelBuilder.LoadLevelUsingPath(Application.dataPath + RelativePath); // byte[] Ttbytes = Resources.Load<TextAsset>("config/level/Level_1").bytes; // string str = System.Text.Encoding.Default.GetString(Ttbytes); // if (str.Equals("")) // { // Debug.LogError("tes"); // } // string[] strss = str.Split('%'); // Debug.LogError("aabb " + strss[2] + " sddd"); // JsonObject jsonObject = SimpleJson.SimpleJson.DeserializeObject<JsonObject>(strss[1]); // Debug.Log(jsonObject); }
void Start() { _levelBuilder = GetComponent <LevelBuilder>(); _levelBuilder.LoadLevelUsingPath(Application.dataPath + RelativePath); }