| | |
| | | } |
| | | UpdateRedpoint(); |
| | | RefreshAllAttr(); |
| | | GubaoCallRedPoint(); |
| | | } |
| | | |
| | | |
| | |
| | | Redpoint gubaoLVRP = new Redpoint(MainRedDot.RedPoint_GuaBao * 10 + 1, MainRedDot.RedPoint_GuaBao * 100 + 1); //升级 |
| | | Redpoint gubaoStarRP = new Redpoint(MainRedDot.RedPoint_GuaBao * 10 + 1, MainRedDot.RedPoint_GuaBao * 100 + 2); //升星 |
| | | |
| | | Redpoint gbCall1RP = new Redpoint(MainRedDot.RedPoint_GuaBao * 10 + 2, (MainRedDot.RedPoint_GuaBao * 10 + 2) * 10 + 1); //1抽 |
| | | Redpoint gbCallFreeRP = new Redpoint(MainRedDot.RedPoint_GuaBao * 10 + 2, (MainRedDot.RedPoint_GuaBao * 10 + 2) * 10 + 1); //免费抽 |
| | | Redpoint gbCall10RP = new Redpoint(MainRedDot.RedPoint_GuaBao * 10 + 2, (MainRedDot.RedPoint_GuaBao * 10 + 2) * 10 + 2); //10抽 |
| | | public void UpdateRedpoint() |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | public void GubaoCallRedPoint() |
| | | { |
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.HappyFindTreasure)) |
| | | return; |
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Hero)) |
| | | return; |
| | | |
| | | |
| | | // 免费 10连 |
| | | gbCallFreeRP.state = RedPointState.None; |
| | | gbCall10RP.state = RedPointState.None; |
| | | |
| | | |
| | | if (HappyXBModel.Instance.IsHaveFreeXB((int)HappXBTitle.Gubao)) |
| | | { |
| | | gbCallFreeRP.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ?RedPointState.GetReward : RedPointState.Simple; |
| | | } |
| | | |
| | | if (HappyXBModel.Instance.IsHaveManyXBToolEx((int)HappXBTitle.Gubao, out int xbtoolCnt, out int needtoolCnt, out int needMoney)) |
| | | { |
| | | gbCall10RP.state = PlayerDatas.Instance.baseData.realmLevel >= 1 ?RedPointState.GetReward : RedPointState.Simple; |
| | | return; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | |