public bool OnReceiveSeasonResetAck(ERandomwarsSeasonErrorCode errorCode, UserSeasonInfo seasonInfo, ItemBaseInfo[] arrayRewardInfo) { this.seasonInfo = seasonInfo; UI_Main.Get().obj_IndicatorPopup.SetActive(false); if (errorCode == ERandomwarsSeasonErrorCode.Success) { UserInfoManager.Get().GetUserInfo().seasonTrophy = seasonInfo.SeasonTrophy; UserInfoManager.Get().GetUserInfo().rankPoint = seasonInfo.RankPoint; if (arrayRewardInfo != null && arrayRewardInfo.Length > 0) { rewardSlot.gameObject.SetActive(true); text_Unranked.gameObject.SetActive(false); text_MyRank.text = seasonInfo.Rank.ToString(); rewardSlot.Initialize(arrayRewardInfo); btn_GetReward.interactable = true; } else { rewardSlot.gameObject.SetActive(false); text_Unranked.gameObject.SetActive(true); btn_GetReward.interactable = false; } } Open(); return(true); }
public void RefreshSeasonInfo() { int myStar = UserInfoManager.Get().GetUserInfo().seasonTrophy; int starLevel = UserInfoManager.Get().GetUserInfo().seasonPassRewardStep; TDataSeasonpassReward currentRewardInfo; if (TableManager.Get().SeasonpassReward.GetData(starLevel, out currentRewardInfo)) { text_SeasonID.text = $"Season {UserInfoManager.Get().GetUserInfo().seasonPassId}"; if (starLevel >= TableManager.Get().SeasonpassReward.Keys.Count) { //int needStar = NextRewardInfo.trophyPoint - currentRewardInfo.trophyPoint; text_StarCount.text = $"MAX"; slider_Star.value = 1f; text_StarLevel.text = $"{starLevel}"; } else { TDataSeasonpassReward NextRewardInfo; if (TableManager.Get().SeasonpassReward.GetData(starLevel + 1, out NextRewardInfo)) { int needStar = NextRewardInfo.trophyPoint - currentRewardInfo.trophyPoint; text_SeasonID.text = $"Season {UserInfoManager.Get().GetUserInfo().seasonPassId}"; text_StarCount.text = $"{myStar - currentRewardInfo.trophyPoint}/{needStar}"; slider_Star.value = (myStar - currentRewardInfo.trophyPoint) / (float)needStar; text_StarLevel.text = $"{starLevel}"; } } } }
public void Click_ResetButton(int caseNum) { switch (caseNum) { case 0: #if UNITY_EDITOR ADCallback(true); #else MopubCommunicator.Instance.showVideo(ADCallback); #endif break; case 1: { if (UserInfoManager.Get().GetUserInfo().gold >= cost) { PointReset(); Close(); } else { UI_Main.Get().moveShopPopup.Initialize(UI_BoxOpenPopup.COST_TYPE.GOLD); } } break; } }
public void SetButton() { if (UserInfoManager.Get().GetUserInfo().seasonPassRewardStep < row) // 트로피 부족 { arrObj_Lock[0].SetActive(true); arrObj_Lock[1].SetActive(true); arrObj_Check[0].SetActive(false); arrObj_Check[1].SetActive(false); arrButton[0].interactable = false; arrButton[1].interactable = false; btn_Unlock.gameObject.SetActive(row == UserInfoManager.Get().GetUserInfo().seasonPassRewardStep + 1); text_UnlockCost.text = data.rewardBuyPrice.ToString(); } else { bool getNormal = getNormalRow >= row; bool getPass = getVipRow >= row; arrObj_Lock[0].SetActive(false); arrObj_Lock[1].SetActive(false); arrObj_Check[0].SetActive(getPass); arrObj_Check[1].SetActive(getNormal); arrButton[0].interactable = !getPass && UserInfoManager.Get().GetUserInfo().buySeasonPass; arrButton[1].interactable = !getNormal; btn_Unlock.gameObject.SetActive(false); } }
public bool OnReceiveSeasonPassStepAck(ERandomwarsSeasonErrorCode errorCode, int rewardId, ItemBaseInfo useItemInfo, ItemBaseInfo rewardInfo, QuestData[] arrayQuestData) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); UI_Popup.AllClose(); if (errorCode == ERandomwarsSeasonErrorCode.Success) { switch (useItemInfo.ItemId) { case 1: UserInfoManager.Get().GetUserInfo().gold += useItemInfo.Value; break; case 2: UserInfoManager.Get().GetUserInfo().diamond += useItemInfo.Value; break; } UserInfoManager.Get().GetUserInfo().seasonPassRewardStep = rewardId; UserInfoManager.Get().GetUserInfo().seasonTrophy += rewardInfo.Value; UI_Main.Get().RefreshUserInfoUI(); UI_Popup_Quest.QuestUpdate(arrayQuestData); SendMessageUpwards("RefreshSeasonInfo", SendMessageOptions.DontRequireReceiver); transform.parent.BroadcastMessage("SetButton"); } else { UI_ErrorMessage.Get().ShowMessage("재화가 부족합니다."); } return(true); }
IEnumerator WaitForMatch() { yield return(new WaitForSeconds(2.0f)); matchSendCount++; StatusMatchReq(UserInfoManager.Get().GetUserInfo().ticketId); }
private void Start() { isPushMode = true; isTeamColorMode = false; slider_Factor.value = factor; text_Factor.text = $"x{factor:F1}"; DOTween.Init(); RefreshUserInfoUI(); SoundManager.instance.PlayBGM(Global.E_SOUND.BGM_LOBBY); FirebaseManager.Get().LogEvent("Login"); if (UserInfoManager.Get().GetUserInfo().needSeasonReset) { ShowMessageBox(LocalizationManager.GetLangDesc("Seasonpass_Endseason"), LocalizationManager.GetLangDesc("Seasonpass_Endseason"), seasonEndPopup.Initialize); } // TDataShopProductList data; // if (TableManager.Get().ShopProductList.GetData(pd => pd.isShow == true, out data)) // { // Debug.Log(data.googleProductId + ", " + data.appleProductId); // } HideAnotherPanel(); canvasWidth = ((RectTransform)transform).sizeDelta.x; ((RectTransform)arrPanels[0].transform).offsetMin = new Vector2(-canvasWidth * 2, ((RectTransform)arrPanels[0].transform).offsetMin.y); ((RectTransform)arrPanels[0].transform).offsetMax = new Vector2(-canvasWidth * 2, ((RectTransform)arrPanels[0].transform).offsetMin.y); canvasWidth = ((RectTransform)transform).sizeDelta.x; ((RectTransform)arrPanels[1].transform).offsetMin = new Vector2(-canvasWidth, ((RectTransform)arrPanels[1].transform).offsetMin.y); ((RectTransform)arrPanels[1].transform).offsetMax = new Vector2(-canvasWidth, ((RectTransform)arrPanels[1].transform).offsetMin.y); canvasWidth = ((RectTransform)transform).sizeDelta.x; ((RectTransform)arrPanels[3].transform).offsetMin = new Vector2(canvasWidth, ((RectTransform)arrPanels[3].transform).offsetMin.y); ((RectTransform)arrPanels[3].transform).offsetMax = new Vector2(canvasWidth, ((RectTransform)arrPanels[3].transform).offsetMin.y); canvasWidth = ((RectTransform)transform).sizeDelta.x; ((RectTransform)arrPanels[4].transform).offsetMin = new Vector2(canvasWidth * 2, ((RectTransform)arrPanels[4].transform).offsetMin.y); ((RectTransform)arrPanels[4].transform).offsetMax = new Vector2(canvasWidth * 2, ((RectTransform)arrPanels[4].transform).offsetMin.y); mainPagePosX = new float[] { canvasWidth * 2, canvasWidth, 0, -canvasWidth, -canvasWidth * 2 }; Click_MainButton(2); if (listADReward.Count > 0) { AddReward(listADReward.ToArray(), btn_PlayBattle.transform.position); listADReward.Clear(); } }
private void Update() { if (isInitialized) { refreshTime -= Time.deltaTime; if (refreshTime <= 0) { refreshTime = 0.1f; var span = UserInfoManager.Get().GetUserInfo().seasonEndTime.Subtract(DateTime.Now); if (span.TotalSeconds >= 0) { text_SeasonRemainTime.text = string.Format("{0}Days {1:D2}:{2:D2}:{3:D2}", span.Days, span.Hours, span.Minutes, span.Seconds); } else { text_SeasonRemainTime.text = string.Empty; Close(); } } } }
public void Click_DeckSlot(int index) { UserInfoManager.Get().SetActiveDeckIndex(index); UI_Main.Get().panel_Dice.SetActiveDeck(); UI_Main.Get().panel_Dice.ui_MainStage.Set(); UI_Main.Get().panel_Dice.RefreshEquipedMarkObject(); }
public void ClickSearchingCancel() { if (NetworkManager.Get() != null) { switch (NetworkManager.Get().NetMatchStep) { case Global.E_MATCHSTEP.MATCH_NONE: ClickSearchingCancelResult(); break; case Global.E_MATCHSTEP.MATCH_START: btn_Cancel.interactable = false; // 매칭 요청중이면 중단을 요청한다. NetworkManager.Get().StopMatchReq(UserInfoManager.Get().GetUserInfo().ticketId); break; case Global.E_MATCHSTEP.MATCH_CONNECT: btn_Cancel.interactable = false; return; case Global.E_MATCHSTEP.MATCH_CANCEL: btn_Cancel.interactable = false; break; } } }
public void Buy() { //상품 재화 소모 연출 Debug.Log("구매!"); if (buyType == BuyType.cash) { //buttonShopItem.onClick.AddListener(() => //{ #if UNITY_EDITOR //개발자 테스트용 //NetworkManager.session.ShopTemplate.ShopPurchaseTestReq(NetworkManager.session.HttpClient, shopInfo.shopId, shopProductId, null, ShowBuyResult); #else //실제 결제 InAppManager.Instance.BuyProductID(productId, UserInfoManager.Get().GetUserInfo().userID, shopInfo.shopId, shopProductId, ShowBuyResult); #endif pos = transform.position; UI_Main.Get().obj_IndicatorPopup.SetActive(true); //}); } else { //buttonShopItem.onClick.AddListener(() => //{ //인앱 재화로 상품 구매하는 경우 NetworkManager.session.ShopTemplate.ShopBuyReq(NetworkManager.session.HttpClient, shopInfo.shopId, shopProductId, ShowBuyResult); pos = transform.position; UI_Main.Get().obj_IndicatorPopup.SetActive(true); //}); } }
private void Start() { //RefreshDeck(); SetActiveDeck(); RefreshGettedDice(); var safeArea = Screen.safeArea; var canvas = GetComponentInParent <Canvas>(); var anchorMin = safeArea.position; var anchorMax = safeArea.position + safeArea.size; anchorMin.x /= canvas.pixelRect.width; anchorMin.y /= canvas.pixelRect.height; anchorMax.x /= canvas.pixelRect.width; anchorMax.y /= canvas.pixelRect.height; //SafeAreaRect.anchorMin = anchorMin; rts_ScrollView.anchorMax = anchorMax; rts_ScrollViewGuardian.anchorMax = anchorMax; rts_ScrollViewEmotion.anchorMax = anchorMax; if (UserInfoManager.Get() == null) { print("user null"); } //scrollView.OnDrag(data => { GetComponentInParent<UI_Main>().OnDrag((PointerEventData)data);}); // Emotion Deck RefreshEmotionDeck(); }
// public void Initialize(RandomWarsResource.Data.TDataGuardianInfo pData, int level, int count) // { // _dataGuardian = pData; // // image_Icon.sprite = FileHelper.GetDiceIcon( pData.iconName ); // image_Eye.color = FileHelper.GetColor(pData.color); // // text_DiceLevel.text = $"{Global.g_class} {level}"; // slider_DiceGuage.gameObject.SetActive(false); // button_Use.onClick.AddListener(() => { _panelDice.Click_Dice_Use(pData.id); }); // button_Info.onClick.AddListener(() => { _panelDice.Click_Dice_Info(pData.id); }); // button_LevelUp.onClick.AddListener(() => { _panelDice.Click_Dice_Info(pData.id); }); // // for (int i = 0; i < arrImage_GradeBG.Length; ++i) // { // arrImage_GradeBG[i].sprite = arrSprite_GradeBG[0]; // } // } public void Click_Dice() { _grandParent.BroadcastMessage("DeactivateSelectedObject", SendMessageOptions.DontRequireReceiver); if (isUngetted) { _panelDice.Click_Dice_Info(_data.id); } else { if (_data.isGuardian) { _panelDice.Click_Dice_Info(_data.id); } else { obj_Selected.SetActive(true); verticalLayoutGroup.enabled = false; contentSizeFitter.enabled = false; ts_Move.SetParent(_grandParent); int diceCount = UserInfoManager.Get().GetUserInfo().dicGettedDice[_data.id][1]; int diceLevel = UserInfoManager.Get().GetUserInfo().dicGettedDice[_data.id][0]; TDataDiceUpgrade dataDiceUpgrade; if (TableManager.Get().DiceUpgrade .GetData(x => x.diceLv == diceLevel + 1 && x.diceGrade == (int)_data.grade, out dataDiceUpgrade) == false) { return; } int needCount = dataDiceUpgrade.needCard; int needGold = dataDiceUpgrade.needGold; bool isEnableLevelUp = diceCount >= needCount; if (isEnableLevelUp) { button_Info.gameObject.SetActive(false); button_LevelUp.gameObject.SetActive(true); text_LevelUpCost.text = needGold.ToString(); text_LevelUpCost.color = UserInfoManager.Get().GetUserInfo().gold >= needGold ? Color.white : Color.red; } else { button_Info.gameObject.SetActive(true); button_LevelUp.gameObject.SetActive(false); } } } // var parent = transform.parent.parent; // ((RectTransform)parent).DOAnchorPosY( // Mathf.Clamp(Mathf.Abs((((RectTransform)transform.parent).anchoredPosition.y + 980) + ((RectTransform)transform).anchoredPosition.y - 200), 0, // ((RectTransform)parent).sizeDelta.y - ((RectTransform)parent.parent).rect.height), 0.3f); }
public void Initialize(int id, int count) { RandomWarsResource.Data.TDataItemList tDataItemList; if (TableManager.Get().ItemList.GetData(id, out tDataItemList) == false) { return; } boxID = id; needKey = tDataItemList.openKeyValue; //Debug.LogFormat("ID:{0}, COUNT:{1}, KEY:{2}", id, count, needKeyCount); bool isEnable = false; isEnable = needKey <= UserInfoManager.Get().GetUserInfo().key; text_Name.text = LocalizationManager.GetLangDesc(tDataItemList.itemName_langId); text_Cost.text = needKey.ToString(); text_Count.text = $"x{count}"; text_Cost.color = isEnable ? Color.white : UnityUtil.HexToColor("DF362D"); text_Name.color = isEnable ? Color.white : Color.gray; text_Count.color = isEnable ? Color.white : Color.gray; image_CostIcon.color = isEnable ? Color.white : Color.gray; //image_Icon.sprite = arrSprite_BoxIcon[id - (int)RandomWarsResource.Data.EItemListKey.boss01box]; image_Icon.sprite = FileHelper.GetIcon(tDataItemList.itemIcon); //if (needKey >= 0) //{ // isEnable = needKey <= UserInfoManager.Get().GetUserInfo().key; // text_Name.text = LocalizationManager.GetLangDesc(tDataItemList.itemName_langId); // text_Cost.text = needKey.ToString(); // text_Count.text = $"x{count}"; // text_Cost.color = isEnable ? Color.white : ParadoxNotion.ColorUtils.HexToColor("DF362D"); // text_Name.color = isEnable ? Color.white : Color.gray; // text_Count.color = isEnable ? Color.white : Color.gray; // image_CostIcon.color = isEnable ? Color.white : Color.gray; // image_Icon.sprite = arrSprite_BoxIcon[id/1000 - 1]; //} //else //{ // text_Name.text = $"NULL"; // image_Icon.sprite = FileHelper.GetNullIcon(); // image_Icon.SetNativeSize(); // text_Count.text = string.Empty; // text_Cost.text = string.Empty; //} btn.interactable = isEnable; if (isEnable == false) { image_BG.material = mtl_Grayscale; image_Icon.material = mtl_Grayscale; } }
public void EditNicknameCallback(MsgEditUserNameAck msg) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); UserInfoManager.Get().GetUserInfo().SetNickName(msg.UserName); oldNickname = msg.UserName; UI_Main.Get().RefreshUserInfoUI(); SetEditButton(false); }
public void RefreshEmotionDeck() { for (int i = 0; i < UserInfoManager.Get().GetUserInfo().emotionDeck.Count; i++) { TDataItemList data; if (TableManager.Get().ItemList.GetData(UserInfoManager.Get().GetUserInfo().emotionDeck[i], out data)) { arrImage_EmotionDeck[i].sprite = FileHelper.GetIcon(data.itemIcon); } } }
public ActionResult UpdateProfile(UserInfo userModel) { UserInfo initEntity = UserInfoManager.Get(userModel.ID); initEntity.Phone = userModel.Phone; initEntity.Email = userModel.Email; initEntity.QQ = userModel.QQ; UserInfoManager.Update(initEntity); UserInfoManager.SetUserSession(initEntity); return(Content("1")); }
protected override void OnEnable() { base.OnEnable(); text_UID.text = $"UID : {UserInfoManager.Get().GetUserInfo().userID}"; oldNickname = UserInfoManager.Get().GetUserInfo().userNickName; input_Nickname.text = $"{oldNickname}"; Initialize(); SetEditButton(false); }
public void Initialize(int cost, UnityAction callback = null) { gameObject.SetActive(true); text_Cost.text = cost.ToString(); btn_Buy.interactable = UserInfoManager.Get().GetUserInfo().diamond >= cost; btn_Buy.onClick.RemoveAllListeners(); if (callback != null) { btn_Buy.onClick.AddListener(callback); } }
public bool OnRecieveEmotionChange(ERandomwarsItemErrorCode errorCode, List <int> listItemId) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); if (errorCode == ERandomwarsItemErrorCode.Success) { UserInfoManager.Get().GetUserInfo().emotionDeck = listItemId; RefreshEmotionDeck(); return(true); } return(false); }
public bool OnStartMatchAck(ERandomwarsMatchErrorCode errorCode, string ticketId) { if (string.IsNullOrEmpty(ticketId)) { UnityUtil.Print("ticket id null"); return(false); } NetMatchStep = Global.E_MATCHSTEP.MATCH_NONE; UserInfoManager.Get().SetTicketId(ticketId); StartCoroutine(WaitForMatch()); return(true); }
private void Awake() { var userInfo = UserInfoManager.Get().GetUserInfo(); if (userInfo == null || userInfo.isEndTutorial) { isTutorial = false; gameObject.SetActive(false); return; } isTutorial = true; StartCoroutine(TutorialCoroutine()); }
bool OnReceiveQuestDailyRewardAck(ERandomwarsQuestErrorCode errorCode, QuestData[] arrayQuestData, ItemBaseInfo[] arrayRewardInfo, QuestDayReward dailyRewardInfo) { UI_Main.Get().obj_IndicatorPopup.SetActive(false); if (errorCode == ERandomwarsQuestErrorCode.Success) { arrIsDailyRewardGet = dailyRewardInfo.DayRewardState; // List<ItemBaseInfo> list = new List<ItemBaseInfo>(); // // foreach (var reward in arrayRewardInfo) // { // var data = new TDataItemList(); // if (TableManager.Get().ItemList.GetData(reward.ItemId, out data)) // { // switch (data.id) // { // case 1: // 골드 // UserInfoManager.Get().GetUserInfo().gold += reward.Value; // UI_GetProduction.Get().Initialize(ITEM_TYPE.GOLD, mousePos, Mathf.Clamp(reward.Value, 5, 20)); // break; // case 2: // 다이아 // UserInfoManager.Get().GetUserInfo().diamond += reward.Value; // UI_GetProduction.Get().Initialize(ITEM_TYPE.DIAMOND, mousePos, Mathf.Clamp(reward.Value, 5, 20)); // break; // default: // 주사위 // { // ItemBaseInfo rw = new ItemBaseInfo(); // rw.ItemId = reward.ItemId; // rw.Value = reward.Value; // list.Add(rw); // } // break; // } // } // } // // if (list.Count > 0) // { // UI_Main.Get().gerResult.Initialize(list.ToArray(), false, false); // } UserInfoManager.Get().GetUserInfo().AddItem(arrayRewardInfo, mousePos); QuestUpdate(arrayQuestData); InfoCallback(); } return(true); }
private bool RecieveItemCallback(GameBaseMailBoxErrorCode errorCode, ItemBaseInfo[] arrayMailItemInfo) { if (errorCode == GameBaseMailBoxErrorCode.Success) { UserInfoManager.Get().GetUserInfo().AddItem(arrayMailItemInfo, image_ItemIcon.transform.position); UI_Mailbox.RemoveMailInfo(info); Destroy(gameObject); return(true); } return(false); }
public void Logout() { if (Social.localUser.authenticated) // 로그인 되어 있다면 { #if UNITY_ANDROID ((PlayGamesPlatform)Social.Active).SignOut(); #elif UNITY_IOS #endif } UserInfoManager.Get().GetUserInfo().SetPlatformID(string.Empty); ObscuredPrefs.SetInt("PlatformType", (int)EPlatformType.None); Debug.Log("GPGS Logout !"); }
public void Click_Upgrade() { if (UserInfoManager.Get().GetUserInfo().gold >= needGold) { NetworkManager.session.DiceTemplate.DiceUpgradeReq(NetworkManager.session.HttpClient, data.id, OnReceiveDiceUpgradeAck); UI_Main.Get().obj_IndicatorPopup.SetActive(true); } else { FindObjectOfType <UI_Popup_MoveShop>().Initialize(UI_BoxOpenPopup.COST_TYPE.GOLD); } }
public void AddReward(ItemBaseInfo[] rewards, Vector3 startPos) { if (rewards != null) { List <ItemBaseInfo> list = new List <ItemBaseInfo>(); foreach (var reward in rewards) { var data = new TDataItemList(); if (TableManager.Get().ItemList.GetData(reward.ItemId, out data)) { switch (data.id) { case 1: // 골드 UserInfoManager.Get().GetUserInfo().gold += reward.Value; UI_GetProduction.Get().Initialize(ITEM_TYPE.GOLD, startPos, Mathf.Clamp(reward.Value, 5, 20)); break; case 2: // 다이아 UserInfoManager.Get().GetUserInfo().diamond += reward.Value; UI_GetProduction.Get().Initialize(ITEM_TYPE.DIAMOND, startPos, Mathf.Clamp(reward.Value, 5, 20)); break; case 11: // 열쇠 UserInfoManager.Get().GetUserInfo().key += reward.Value; UI_GetProduction.Get().Initialize(ITEM_TYPE.KEY, startPos, Mathf.Clamp(reward.Value, 5, 20)); break; default: // 주사위 { ItemBaseInfo rw = new ItemBaseInfo(); rw.ItemId = reward.ItemId; rw.Value = reward.Value; list.Add(rw); } break; } } } if (list.Count > 0) { gerResult.Initialize(list.ToArray(), false, false); } } }
/// <summary> /// 현재 덱에 장착중이면 장착중마크 활성화 /// </summary> public void SetEquipedMark() { int currentDeckIndex = UserInfoManager.Get().GetUserInfo().activateDeckIndex; var deck = UserInfoManager.Get().GetUserInfo().arrDeck; obj_Equiped.SetActive(false); for (int i = 0; i < deck[currentDeckIndex].Length; i++) { if (deck[currentDeckIndex][i] == _data.id) { obj_Equiped.SetActive(true); return; } } }
async UniTask StartFakeGame() { if (TableManager.Get().Loaded == false) { TableManager.Get().Init(Application.persistentDataPath + "/Resources/"); } var server = FindObjectOfType <RWNetworkServer>(true); server.gameObject.SetActive(true); var userInfo = UserInfoManager.Get().GetUserInfo(); var userDeck = userInfo.GetActiveDeck; var diceDeck = userDeck.Take(5).ToArray(); var guadianId = userDeck[5]; if (TutorialManager.isTutorial) { server.serverGameLogic.modeType = PLAY_TYPE.Tutorial; } else { server.serverGameLogic.modeType = playType; } server.serverGameLogic.hostMode = true; var userDeckInfo = new DeckInfo(guadianId, diceDeck); server.MatchData.AddPlayerInfo( userInfo.userID, userInfo.userNickName, 0, 0, userDeckInfo); server.MatchData.AddPlayerInfo( "AI", "AI", 0, 0, GetAIDeck(userDeckInfo, TutorialManager.isTutorial), false); server.authenticator = null; var client = FindObjectOfType <RWNetworkClient>(); client.authenticator = null; client.LocalUserId = userInfo.userID; client.LocalNickName = userInfo.userNickName; server.Listening = false; await server.StartHost(client); }
public void RefreshDeckButton(bool isImmediate = false) { int index = UserInfoManager.Get().GetActiveDeckIndex(); // image_CurrentDeckSlot.rectTransform.DOAnchorPos( // ((RectTransform) arrButton_Deck[index].transform).anchoredPosition, // isImmediate ? 0f : 0.2f).SetEase(Ease.OutBack); Color gray = new Color(146, 137, 227); for (int i = 0; i < arrText_Deck.Length; i++) { arrImage_DeckButton[i].sprite = arrSprite_DeckButtonOnOff[i == index ? 1 : 0]; arrText_Deck[i].color = i == index ? Color.white : gray; } }