I used www(which is a class that connect HTTP) to get Json data from server. The Data will be stored in www.text value type string, and I splited the data every }, as it contains several information of several sticks and I need to split them.


And printTextSplit(string[] str) method does that task


Code is below:



StickList is the list of connected Z Sticks and every stick information will be printed in console by Debug.Log command. StickList.Count is a int value that the number of sticks connected

'중국인턴(Intern In China) > 업무(Tasks)' 카테고리의 다른 글

Unity Http Put Json Type  (0) 2017.01.11
Unity HTTP (www) get, put, post  (0) 2017.01.10
Loaded Json Data from Server@@@  (0) 2017.01.06
Unity read Json data  (0) 2017.01.06
First Assignment in China  (0) 2017.01.05

+ Recent posts