From 2768bc57c1dcdc33a12f2f3fbb73504aa4b9f3f5 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期六, 10 十一月 2018 15:05:54 +0800
Subject: [PATCH] 3335 代码优化
---
System/MainInterfacePanel/FeatureNoticeWin.cs | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/System/MainInterfacePanel/FeatureNoticeWin.cs b/System/MainInterfacePanel/FeatureNoticeWin.cs
index c504631..45700e7 100644
--- a/System/MainInterfacePanel/FeatureNoticeWin.cs
+++ b/System/MainInterfacePanel/FeatureNoticeWin.cs
@@ -206,9 +206,15 @@
#endregion
+ private List<FunctionForecastConfig> configs = new List<FunctionForecastConfig>();
+
private void DefaultSelection()//鑾峰彇榛樿閫夋嫨
{
- var configs = Config.Instance.GetAllValues<FunctionForecastConfig>();
+ if (configs.Count <= 0)
+ {
+ configs= Config.Instance.GetAllValues<FunctionForecastConfig>();
+ }
+ //var configs = Config.Instance.GetAllValues<FunctionForecastConfig>();
foreach (var config in configs)
{
int openTag = config.FuncId;
@@ -357,6 +363,7 @@
}
}
+ List<FunctionForecastConfig> functionForecastValue = new List<FunctionForecastConfig>();
void TrailerClassification(int funcID)//棰勫憡鍒嗙被
{
m_TextTurnedOn.gameObject.SetActive(false);
@@ -375,7 +382,11 @@
}
if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && Type && NeedLv > playerLv)
{
- var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
+ if (functionForecastValue.Count <= 0)
+ {
+ functionForecastValue= Config.Instance.GetAllValues<FunctionForecastConfig>();
+ }
+ // var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
string StrNanme = string.Empty;
foreach (var value in functionForecastValue)
{
--
Gitblit v1.8.0