Beispiel #1
0
        void ResponseGetDictionary(string[] data)
        {
            ResponseGetDictionary response = new ResponseGetDictionary();

            response.numbers = data[1];
            Debug.Log(data[1]);
            ApiClient.Instance.ResponseGetDictionary(response);
        }
Beispiel #2
0
        /// <summary>
        /// 取得している図鑑の情報を取得するレスポンス処理
        /// </summary>
        /// <param name="response"></param>
        public void ResponseGetDictionary(ResponseGetDictionary response)
        {
            Debug.Log(response.numbers);
            string[]   splitdata = response.numbers.Split(NetWorkKey.DICTIONARY_SPLIT_FONT);
            List <int> numbers   = new List <int>();

            for (int index = 0; index < splitdata.Length - 1; index++)
            {
                int castint = int.Parse(splitdata[index]);
                Debug.Log(splitdata[index]);
                numbers.Add(castint);
            }
            StartCoroutine(DictionaryLibrary.instance.Check(numbers));
        }