| | |
| | | [SerializeField] Button _FunctionIconBtn;//面板开关按钮
|
| | | [SerializeField] Text _NameText;//标题名
|
| | | [SerializeField] Text _Information;//信息内容
|
| | | [SerializeField] Text m_Information_reward;//有奖励可领取
|
| | | public static Action<int> FunctionOpenTagEvent;
|
| | | FeatureNoticeModel featureNoticeModel { get { return ModelCenter.Instance.GetModel<FeatureNoticeModel>(); } }
|
| | | public void Init()//初始化
|
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += OnPlayersUpLV;
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | | _FunctionForecastPanel.gameObject.SetActive(false);
|
| | | if (featureNoticeModel.redPointStre1.state == RedPointState.Simple)//预告完毕还有奖励能领取
|
| | | {
|
| | | _FunctionForecastPanel.gameObject.SetActive(true);
|
| | | _FunctionIcon.SetSprite("PersonBossIcon");
|
| | | m_Information_reward.gameObject.SetActive(true);
|
| | | _NameText.gameObject.SetActive(false);
|
| | | _Information.gameObject.SetActive(false);
|
| | | }
|
| | | else
|
| | | {
|
| | | _FunctionForecastPanel.gameObject.SetActive(false);
|
| | | }
|
| | | |
| | | return;
|
| | | }
|
| | |
|
| | | void OpenPanel(int ID)
|
| | | {
|
| | | _FunctionForecastPanel.gameObject.SetActive(true);
|
| | | m_Information_reward.gameObject.SetActive(false);
|
| | | _NameText.gameObject.SetActive(true);
|
| | | _Information.gameObject.SetActive(true);
|
| | | _FunctionIcon.SetSprite(Config.Instance.Get<FunctionForecastConfig>(ID).FuncIconKey);
|
| | | _NameText.text = Config.Instance.Get<FunctionForecastConfig>(ID).Describe;
|
| | | FuncOpenLVConfig funcoPenConfig = Config.Instance.Get<FuncOpenLVConfig>(ID);
|