| | |
| | | FeatureNoticeModel featureNoticeModel { get { return ModelCenter.Instance.GetModel<FeatureNoticeModel>(); } } |
| | | public void GetTheFeatureID(int funcId)
|
| | | {
|
| | | DebugEx.LogError("ID"+ featureNoticeModel.FunctionForecastIndex);
|
| | | var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(funcId);
|
| | | if (functionForecastConfig == null)
|
| | | {
|
| | |
| | | }
|
| | | m_FunctionName.text = functionForecastConfig.FuncName;
|
| | | m_FunctionalLevel.text = functionForecastConfig.DisplayLevel.ToString()+Language.Get("Z1041");
|
| | | if (!FuncOpen.Instance.IsFuncOpen(funcId) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | bool Type = false;
|
| | | int NeedLv = 0;
|
| | | int playerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (functionForecastConfig.OpenNumber - 2 >= featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | Type = true;
|
| | | NeedLv = featureNoticeModel.GetOpenLv(functionForecastConfig.OpenNumber - 2);
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen(funcId) && Type && NeedLv> playerLv)
|
| | | {
|
| | | m_FeaturesTypeIcon.SetSprite("UnKnowIcon");
|
| | | }
|