Пример #1
0
    private void TaskExecuteInvokeHandle(INotifyArgs args)
    {
        TaskBtnManager.Instance.RemoveGuideFrame();
        m_taskGuidePanel.ShowPanel();
        //m_taskPanel.ShowOrHideTips();
        var runningTaskConfigData = TaskModel.Instance.FindRuningTaskState();

        //任务触发时,如果是强引导,关闭所有引导管理按钮。否则,开放所有按钮
        TaskBtnManager.Instance.ResetAllButtonStatus(runningTaskConfigData.TaskNewConfigData.GuideType != TaskGuideType.Enforce);
        if (runningTaskConfigData.TaskNewConfigData.CloseUI == 1)        //收起主功能按钮
        {
            //前面已经关了//

            /*if (UI.SystemFuntionButton.Instance != null)
             * {
             * UI.SystemFuntionButton.Instance.CloseBtnpanel();
             * }*/
            MainUIController.Instance.CloseAllPanel();
            UIEventManager.Instance.TriggerUIEvent(UIEventType.CloseAllUI, null);
        }
        StartCoroutine(CoroutineExecuteTaskGuide(runningTaskConfigData.TaskNewConfigData));
    }
Пример #2
0
    private void InitTaskGuidePanel()
    {
        m_taskGuidePanel = (Instantiate(taskGuidePanel) as GameObject).GetComponent <UI.MainUI.TaskGuidePanel>();
        m_taskGuidePanel.transform.parent                   = this.transform;
        m_taskGuidePanel.transform.localPosition            = new Vector3(0, 0, 150);
        m_taskGuidePanel.transform.localScale               = Vector3.one;
        m_taskGuidePanel.GetComponent <UIAnchor>().uiCamera = UICamera;

        m_taskGuidePanel.ShowPanel();

        /*m_taskGuidePanel.ClickTaskStateAct = (taskState) =>
         * {
         *      TaskModel.Instance.ManualTriggerTask(taskState);
         *      m_taskGuidePanel.InitTaskPanel(TaskModel.Instance.FindNextQuickGuideTask());
         * };*/
        RefreshTaskQuickInfo(null);
    }