public void GetRewardAutofarm() { StartCoroutine(ServerAdapter.GetRewardFromMonster(CharacterInfo._instance._baseProperties.idHero, CharacterInfo._instance._baseProperties.idCodeHero, 10, 100, result => { if (result.StartsWith("Error")) { Debug.Log("do nothing"); } else { Debug.Log(result); var N = JSONNode.Parse(result); int numberItemEquipReceved = N.Count; EquipItemReward[] _listItemReceived = new EquipItemReward[numberItemEquipReceved]; for (int i = 0; i < numberItemEquipReceved; i++) { _listItemReceived[i] = JsonUtility.FromJson <EquipItemReward>(N[i].ToString()); } } })); }