| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | |
| | | treasureModel.treasureStageUpEvent += treasureStageUpEvent;
|
| | | }
|
| | |
|
| | | |
| | |
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | | private void treasureStageUpEvent(int obj)
|
| | | {
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (PlayerDatas.Instance.baseData.LV>= functionForecastConfig.RedPointLV)
|
| | | if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.RedPointLV)
|
| | | {
|
| | | RedPointChange = true;
|
| | | IsRedPoint = true;
|
| | |
| | | }
|
| | | }
|
| | | TreasureModel treasureModel { get { return ModelCenter.Instance.GetModel<TreasureModel>(); } }
|
| | | private void MagicWeapon(int fabaoID,int funcID)
|
| | | private void MagicWeapon(int fabaoID, int funcID)
|
| | | {
|
| | | var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(funcID);
|
| | | if (functionForecastConfig.RedPointLV >0)//根据填的等级来
|
| | | if (functionForecastConfig.RedPointLV > 0)//根据填的等级来
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV >= functionForecastConfig.RedPointLV)
|
| | | {
|
| | |
| | | }
|
| | | if (treasure.stage == funcStage - 1 || funcStage == 0)
|
| | | {
|
| | | float exp = ((float)treasure.exp / treasure.treasureStages[funcStage].exp)*100;
|
| | | float exp = ((float)treasure.exp / treasure.treasureStages[funcStage].exp) * 100;
|
| | | if (functionForecastConfig.RedPointPercentage > -1)
|
| | | {
|
| | | if (exp >= functionForecastConfig.RedPointPercentage)
|
| | |
| | | {
|
| | | var inDungeon = IsDungeon();
|
| | | var IsOpenMaininterface = WindowCenter.Instance.CheckOpen<MainInterfaceWin>();
|
| | | if (NewBieCenter.Instance.inGuiding || ModelCenter.Instance.GetModel<TreasureModel>().newGotShowing || inDungeon || !IsOpenMaininterface)
|
| | | var treasureModel = ModelCenter.Instance.GetModel<TreasureModel>();
|
| | | if (NewBieCenter.Instance.inGuiding || treasureModel.newGotShowing || inDungeon || !IsOpenMaininterface
|
| | | || treasureModel.treasureStageUpShow || WindowCenter.Instance.ExitAnyFullScreenOrMaskWin())
|
| | | {
|
| | | return;
|
| | | }
|