| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (IsOnTheList())
|
| | | {
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | | m_IsReachImage.SetActive(true);
|
| | | m_ReceiveBtn.gameObject.SetActive(false);
|
| | | m_IsDrawImage.SetActive(false);
|
| | | }
|
| | | }
|
| | | ReceiveItemH(id);
|
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | |
|
| | | if (!IsOnTheList())
|
| | | {
|
| | | if (CrossServerOneVsOnePlayerInfo.Instance.DanLV == Id)
|
| | | {
|
| | | bool isbool = crossServerRewardModel.IsAwardState(CrossRealmPKAwardStateEnum.SeasonAwardState, -1);
|
| | | if (isbool)
|
| | | {
|
| | | m_IsReachImage.SetActive(false);
|
| | | m_ReceiveBtn.gameObject.SetActive(false);
|
| | | m_IsDrawImage.SetActive(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ReceiveBtn.gameObject.SetActive(true);
|
| | | m_IsReachImage.SetActive(false);
|
| | | m_IsDrawImage.SetActive(false);
|
| | | m_ReceiveBtn.SetListener(()=> |
| | | {
|
| | | crossServerRewardModel.CrossRealmPKGetAward(CrossRealmPKAwardStateEnum.SeasonAwardState,0);
|
| | | });
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | m_IsReachImage.SetActive(true);
|
| | | m_ReceiveBtn.gameObject.SetActive(false);
|
| | | m_IsDrawImage.SetActive(false);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | m_IsReachImage.SetActive(true);
|
| | | m_ReceiveBtn.gameObject.SetActive(false);
|
| | | m_IsDrawImage.SetActive(false);
|
| | | }
|
| | | }
|
| | | ReceiveItemN(Id);
|
| | | }
|
| | |
| | | ObjChild.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | | private bool IsOnTheList()
|
| | | {
|
| | | bool Isbool = false;
|
| | | if (crossServerRewardModel.MyRank > -1 && crossServerRewardModel.MyRank < 100)
|
| | | {
|
| | | Isbool = true;
|
| | | }
|
| | | return Isbool;
|
| | | }
|
| | |
|
| | | private int ListIndex(int myRank)
|
| | | {
|
| | | int type = 0;
|
| | | var keyList = crossServerRewardModel.SeasonRewardDic.AwardDic.Keys.ToList();
|
| | | for (int i = 0; i < keyList.Count; i++)
|
| | | {
|
| | | if (myRank <= keyList[i])
|
| | | {
|
| | | type= i;
|
| | | }
|
| | | }
|
| | | return type;
|
| | | } |
| | | } |
| | | |