public override void OnShow(object param) { base.OnShow(param); m_pause_btn.AddClickCallBack(OnBtnGamePauseClick); m_input_tex.AddPressUpCallBack(OnTexPointerUp); m_input_tex.AddPressDownCallBack(OnTexPointerDown); m_input_tex.AddDragCallBack(OnTexDrag); m_input_tex.AddDragStartCallBack(OnTexDragStart); m_input_tex.AddDragEndCallBack(OnTexDragEnd); m_start_view.AddClickCallBack(OnStartViewClicked); m_clue_progress_grid.AddClickCallBack(OnProgressClicked); m_fly_time_tween_pos.AddTweenCompletedCallback(OnFlyTimeTweenFinished); m_start_view_tween_pos.AddTweenCompletedCallback(OnStartViewTweenFinished); m_active_item_view_queue.Clear(); if (null != param) { List <long> my_param = param as List <long>; this.m_scan_id = my_param[0]; } else { m_scan_id = CurViewLogic().Scan_id; } Refresh(m_scan_id); TimeModule.Instance.SetTimeout(() => { HideStartView(); m_start_view.SetTimeVisible(false); m_fly_time_txt.Visible = true; }, 1.0f); }
public override void OnShow(object param) { base.OnShow(param); m_skip_btn.AddClickCallBack(BtnSkip); m_mask.AddClickCallBack(BtnMask); m_mask.AddDragStartCallBack(DragStart); m_mask.AddDragEndCallBack(DragEnd); m_mask.AddDragCallBack(Draging); if (param != null) { GuidMaskCommonData maskData = (GuidMaskCommonData)param; m_skip_btn.Visible = maskData.m_confGuid.isSkip; m_data = new GuidUIData(maskData.hasEvent, maskData.m_operaType, maskData.m_TypeValue, maskData.eventPassType); InitMask(maskData.m_maskdata); InitArt(maskData.m_artPos, maskData.m_confGuid); } /////////// m_mask.RawImage.raycastTarget = (m_data.OperaType != GuidEnum.Guid_DragScene); if (m_data.OperaType == GuidEnum.Guid_DragScene) { EngineCoreEvents.InputEvent.OnSwipeBegin += OnSwipeBegin; EngineCoreEvents.InputEvent.OnSwipeEnd += OnSwipeEnd; } }
public override void OnShow(object param) { base.OnShow(param); m_show_tex.AddDragCallBack(TexDraged); if (null != m_3d_cam) { m_3d_cam.enabled = true; m_show_tex.RawImage.texture = m_render; } }