public GameObject GenNode() { resmgr = new ResMgr(this); string treefile = null; foreach (var b in bufs.Keys) { if (b.Contains(".jsontree.txt")) { treefile = System.Text.Encoding.UTF8.GetString(this.bufs[b]); break; } } MyJson.JsonNode_Object _json = MyJson.Parse(treefile) as MyJson.JsonNode_Object; _obj = new GameObject(); DelayProcess dp = new DelayProcess(); Json2Obj(_json, _obj, dp); dp.Do(); return(_obj); }
public GameObject GenNode() { resmgr = new ResMgr(this); string treefile = null; foreach (var b in bufs.Keys) { if (b.Contains(".jsontree.txt")) { treefile = System.Text.Encoding.UTF8.GetString(this.bufs[b]); break; } } MyJson.JsonNode_Object _json = MyJson.Parse(treefile) as MyJson.JsonNode_Object; _obj = new GameObject(); DelayProcess dp = new DelayProcess(); Json2Obj(_json, _obj, dp); dp.Do(); return _obj; }