| | |
| | |
|
| | | }
|
| | |
|
| | | private void OnDisable()
|
| | | {
|
| | | TaskModel.Event_MainlineTask -= Event_MainlineTask;
|
| | | }
|
| | |
|
| | | private void Start()
|
| | | {
|
| | | m_FlyingShoesTaskButton.AddListener(OnClickTaskButton);
|
| | |
| | |
|
| | | public void FlyingShoes_Task(int TaskID)
|
| | | {
|
| | | TaskModel.Event_MainlineTask -= Event_MainlineTask;
|
| | | TaskModel.Event_MainlineTask += Event_MainlineTask;
|
| | |
|
| | | Task_ID = TaskID;
|
| | | TypeAssignment();
|
| | | for (int i = 0; i < m_parent.childCount; i++)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void Event_MainlineTask(int MissionID, int MissionState)
|
| | | {
|
| | | if (MissionID == Task_ID && MissionState == 3)
|
| | | {
|
| | | var worldpos = transform.TransformPoint(Vector3.zero);
|
| | | var localpos = WindowCenter.Instance.uiRoot.baseCanvas.InverseTransformPoint(worldpos);
|
| | | var effect = EffectMgr.Instance.PlayUIEffect(3083, 1500, localpos, true);
|
| | | SnxxzGame.Instance.StartCoroutine(Co_StopEffect(effect));
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_StopEffect(UIEffect _uieffect)
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS1500;
|
| | | if (_uieffect != null)
|
| | | {
|
| | | _uieffect.StopImediatly();
|
| | | _uieffect = null;
|
| | | }
|
| | | }
|
| | |
|
| | | private string TaskTitle(int taskID)
|
| | | {
|