public void handlerInput(ref POINTER_INFO ptr) { if (ptr.evt == POINTER_INFO.INPUT_EVENT.MOVE) { for (int i = 0; i < bgBtns.Count; i++) { if (bgBtns[i].gameObject == ptr.targetObj.gameObject) { GameObject bufferToolTip = UIWindowMng.Instance.GetWindowGo("BufferTooltipWindow"); if (bufferToolTip != null) { Vector2 ptMouse = GameProcedure.s_pInputSystem.GetMouseUIPos(); UIBufferToolTip toolTip = bufferToolTip.GetComponent <UIBufferToolTip>(); if (toolText[i] != null) { toolTip.ShowTooltip(ptMouse.x, ptMouse.y, toolText[i]); } } break; } } } else if (ptr.evt == POINTER_INFO.INPUT_EVENT.MOVE_OFF) { GameObject bufferToolTip = UIWindowMng.Instance.GetWindowGo("BufferTooltipWindow"); if (bufferToolTip != null) { UIBufferToolTip toolTip = bufferToolTip.GetComponent <UIBufferToolTip>(); toolTip.Hide(); } } }
public override void OnInput(ref POINTER_INFO ptr) { switch (ptr.evt) { case POINTER_INFO.INPUT_EVENT.MOVE: { GameObject bufferToolTip = UIWindowMng.Instance.GetWindowGo("BufferTooltipWindow"); if (bufferToolTip != null) { Vector2 ptMouse = GameProcedure.s_pInputSystem.GetMouseUIPos(); UIBufferToolTip toolTip = bufferToolTip.GetComponent <UIBufferToolTip>(); toolTip.ShowTooltip(ptMouse.x, ptMouse.y, bufferID_); } } break; case POINTER_INFO.INPUT_EVENT.MOVE_OFF: { GameObject bufferToolTip = UIWindowMng.Instance.GetWindowGo("BufferTooltipWindow"); if (bufferToolTip != null) { UIBufferToolTip toolTip = bufferToolTip.GetComponent <UIBufferToolTip>(); toolTip.Hide(); } } break; default: break; } base.OnInput(ref ptr); }