void LevelUpProcess() { ServerInterface.Instance.UpdateCharacterStatus().Subscribe(updateDeta => { if (updateDeta) { setStatusInfo(baseCharacter); detailWindow.UpdateInfomation(); teamEdit.UpdateIconInformation(); //Effect LoadingController.Instance.FinishLoading(); } else { failedMSG.SetActive(true); LoadingController.Instance.FinishLoading(); connectButton.onClick.RemoveAllListeners(); connectButton.onClick.AddListener(() => { failedMSG.SetActive(false); LevelUpProcess(); }); } }); }
public void InitInformation() { this.gameObject.SetActive(false); coin = 0; //items = null; //nextRarity = 0; charaCout = 0; foreach (var image in rarityImage) { image.gameObject.SetActive(false); image.rectTransform.sizeDelta = new Vector2(25, 25); } detailWindow.UpdateInfomation(); teamEdit.UpdateIconInformation(); }