| | |
| | | [SerializeField] Image m_Icon; |
| | | [SerializeField] Button m_Details; |
| | | [SerializeField] Button m_Goto; |
| | | [SerializeField] Button m_Func; |
| | | [SerializeField] Text m_FuncDisplay; |
| | | [SerializeField] Transform m_Complete; |
| | | [SerializeField] Transform m_Locked; |
| | | [SerializeField] RedpointBehaviour m_RedpointBehaviour; |
| | | [SerializeField] RedpointBehaviour m_FuncRedpointBehaviour; |
| | | |
| | | AchievementGuideEffect m_AchievementEffect; |
| | | |
| | |
| | | m_Goto.RemoveAllListeners(); |
| | | m_Goto.AddListener(GotoDailyQuest); |
| | | |
| | | m_Func.RemoveAllListeners(); |
| | | m_Func.AddListener(GotoFunc); |
| | | |
| | | m_Details.RemoveAllListeners(); |
| | | m_Details.AddListener(ShowDetails); |
| | | |
| | |
| | | else |
| | | { |
| | | m_RedpointBehaviour.gameObject.SetActive(false); |
| | | } |
| | | |
| | | switch ((DailyQuestType)data.id) |
| | | { |
| | | case DailyQuestType.Trial: |
| | | m_FuncRedpointBehaviour.redpointId = model.trialExchangeRedpoint.id; |
| | | break; |
| | | default: |
| | | m_FuncRedpointBehaviour.redpointId = 0; |
| | | break; |
| | | } |
| | | |
| | | CheckAchievementGuide(); |
| | |
| | | else |
| | | { |
| | | dailyQuestWin.GotoDailyQuest(data.id); |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void GotoFunc() |
| | | { |
| | | if (data != null) |
| | | { |
| | | switch ((DailyQuestType)data.id) |
| | | { |
| | | case DailyQuestType.Trial: |
| | | WindowCenter.Instance.Open<TrialExchangeWin>(); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | |
| | | break; |
| | | } |
| | | |
| | | switch ((DailyQuestType)data.id) |
| | | { |
| | | case DailyQuestType.Trial: |
| | | m_Func.gameObject.SetActive(state != DailyQuestModel.DailyQuestState.Locked); |
| | | m_FuncDisplay.text = Language.Get("ItemHandle_exchange"); |
| | | break; |
| | | default: |
| | | m_Func.gameObject.SetActive(false); |
| | | break; |
| | | } |
| | | |
| | | } |
| | | |
| | | private void OnTotalTimeChange() |