public void SetRecvData(DATA_GUILDRAID.Enum guildRaidType, _stGuildRaidGetMemberRankListAck guildRaidMemberRankList, DateTime raidEndTime) { CreateMemberRankList(guildRaidMemberRankList); _guildRaidType = guildRaidType; _guildRaidTable = CDATA_GUILDRAID.Get(_guildRaidType); _BossSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_GUILDRAID, _guildRaidTable.RaidBannerImage); _BossNameLabel.text = StringTableManager.GetData(_guildRaidTable.RaidBossName); TimeSpan ts = raidEndTime - TimeManager.Instance.GetServerTime(); _RemainTimeLabel.text = string.Format(StringTableManager.GetData(4915), ts.Hours, ts.Minutes); // 4915 {0}시간 {1}분 _EnterCountLabel.text = string.Format(StringTableManager.GetData(4924), UserInfo.Instance.GuildRaidTicket, _guildRaidEnterMax); // 4924 입장 가능 횟수 : {0} / {1} _EasyIcon.gameObject.SetActive(false); _NormalIcon.gameObject.SetActive(false); _HardIcon.gameObject.SetActive(false); if (_guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Easy) { _EasyIcon.gameObject.SetActive(true); } else if (_guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Normal) { _NormalIcon.gameObject.SetActive(true); } else if (_guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Hard) { _HardIcon.gameObject.SetActive(true); } }
//=================================================================================== // // Method // //=================================================================================== public void SetResultData(_stGuildRaidBattleResultAck resultData) { GuildRaidInfo guildRaidInfo = UserInfo.Instance.guildRaidInfo; DATA_GUILDRAID guildRaidTable = CDATA_GUILDRAID.Get(guildRaidInfo.guildRaidType); if (guildRaidTable == null) { #if DEBUG_LOG Debug.Log(string.Format("<color=red> GUILDRAID Table Error - guildRaidType : {0} </color>", guildRaidInfo.guildRaidType)); #endif return; } _easyIconLabel.text = StringTableManager.GetData(81); // 81 쉬움 _nomalIconLabel.text = StringTableManager.GetData(82); // 82 보통 _hardIconLabel.text = StringTableManager.GetData(83); // 83 어려움 _easyIcon.gameObject.SetActive(false); _nomalIcon.gameObject.SetActive(false); _hardIcon.gameObject.SetActive(false); if (guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Easy) { _easyIcon.gameObject.SetActive(true); } else if (guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Normal) { _nomalIcon.gameObject.SetActive(true); } else if (guildRaidTable.SetLevel == (int)enGuildRaidDifficulty.Hard) { _hardIcon.gameObject.SetActive(true); } //_bossLevel.gameObject.SetActive(false); // 레벨없음 _bossBannerSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_GUILDRAID, guildRaidTable.RaidBannerImage); _titleLabel.text = StringTableManager.GetData(6753); // 6753 길드 레이드 _bossName.text = StringTableManager.GetData(guildRaidTable.RaidBossName); _currentScore.text = string.Format(StringTableManager.GetData(3411), 0); _totalScore.text = string.Format(StringTableManager.GetData(3411), UtilFunc.CurrencyFormat((int)(guildRaidInfo.guildRaidScore + resultData.kAddScore))); _moveMainMenuButtonLabel.text = StringTableManager.GetData(133); _moveGuildRaidLabel.text = StringTableManager.GetData(6753); // 6753 길드 레이드 _moveGuildRaidReadyLabel.text = StringTableManager.GetData(135); _guildRaidTicketLabel.text = string.Format(StringTableManager.GetData(4918), resultData.kUpdatePlayCount); if (UserInfo.Instance.GuildRaidTicket < 1) { Vector3 OriginPos = _moveMainMenuButton.transform.localPosition; _moveMainMenuButton.transform.localPosition = new Vector3(-150.0f, OriginPos.y, OriginPos.z); OriginPos = _moveGuildRaid.transform.localPosition; _moveGuildRaid.transform.localPosition = new Vector3(150.0f, OriginPos.y, OriginPos.z); _moveGuildRaidReady.gameObject.SetActive(false); } // ulog -> float -> (ulog or int) 손실발생. 그래서 저장. float Round = Mathf.Round(resultData.kAddScore); // ulong -> float _roundToInt = Mathf.RoundToInt(Round); // float -> int _score = resultData.kAddScore; // iTween.ValueTo 호출 시 (int)iCurrScore 이 값을 Hash에서 float으로 저장할때 손실발생. iTween.ValueTo(gameObject, iTween.Hash("from", 0, "to", (int)_score, "onUpdate", "CurrScoreCounter", "delay", 1, "time", 1)); }