private void LoadEquippedData() { _txtState.text = "Loading shop init data..."; if (!PlayerPrefs.HasKey(Constant.SHOPINIT)) { StartCoroutine(ServerAdapter.LoadShopInit(result => { if (result.StartsWith("Error")) { Debug.LogError("Load shopinit failed!"); } else { PlayerPrefs.SetString(Constant.SHOPINIT, result); SplitDataFromServe.ReadShopInitData(result); StartCoroutine(CharacterItemInGame.Instance.ExecuteGetMonsterResource()); } })); } else { SplitDataFromServe.ReadShopInitData(PlayerPrefs.GetString(Constant.SHOPINIT)); StartCoroutine(CharacterItemInGame.Instance.ExecuteGetMonsterResource()); } }