//ポイント情報取得 private void GetUserPoint(Action callback = null, bool isIgnoreError = false) { //所持ポイント取得 Point.Get pointGet = new Point.Get(); if (isIgnoreError) { pointGet.SetNextAction(callback); pointGet.SetApiErrorIngnore(); } else { pointGet.SetApiFinishCallback(callback); } pointGet.Exe(); }
protected override void Awake() { base.Awake(); DialogController.OpenMessage(DialogController.MESSAGE_JOIN_ROOM, DialogController.MESSAGE_POSITION_RIGHT); //所持ポイント取得 >> 武器情報取得 Point.Get pointGet = new Point.Get(); pointGet.SetApiErrorIngnore(); pointGet.SetApiFinishCallback(() => GetWeaponData(SetCustom)); pointGet.SetApiFinishErrorCallback(SetNoCustom); pointGet.SetConnectErrorCallback(SetNoCustom); pointGet.Exe(); //武器リストエリア取得 Transform weaponScrollViewTran = weaponSelectArea.FindChild("ScrollView"); weaponScrollView = weaponScrollViewTran.GetComponent <ScrollRect>(); weaponScrollViewLayout = weaponScrollViewTran.GetComponent <LayoutElement>(); weaponButtonArea = weaponScrollViewTran.FindChild("Viewport/ButtonArea"); weaponButtonAreaRectTran = weaponButtonArea.GetComponent <RectTransform>(); buttonHeight = equipWeaponRow.GetComponent <LayoutElement>().preferredHeight + weaponButtonArea.GetComponent <VerticalLayoutGroup>().spacing; descriptionHeight = equipWeaponRow.transform.FindChild("WeaponDescription").GetComponent <RectTransform>().rect.height; weaponListHeight = weaponSelectArea.rect.height; weaponSelectArea.gameObject.SetActive(false); playMovieObj = GameObject.Find("PointGetArea"); SwitchPointGetArea(false); partsNameText.text = ""; //ステータスバー対策 if (Common.Func.IsAndroid()) { statusBar.GetComponent <LayoutElement>().preferredHeight = 60; statusBar.GetComponent <Image>().color = new Color(0, 0, 0, 1); } else if (Common.Func.IsIos()) { statusBar.GetComponent <LayoutElement>().preferredHeight = 60; statusBar.GetComponent <Image>().color = new Color(0, 0, 0, 1); } else { statusBar.GetComponent <LayoutElement>().preferredHeight = 30; statusBar.GetComponent <Image>().color = new Color(0, 0, 0, 0); } }