public void DrawLineInUpdate() { // if (m_line == null) { Debug.LogError("生成linerender失败"); return; } // if (prePointerpPostion == Input.mousePosition) { return; } prePointerpPostion = Input.mousePosition; // if (isStartDraw) { if (isEndDraw) { endPosition = LineRenderDrawerController.Instance.curClickPort.gameObject.transform.position; isStartDraw = false; MainWindowCtrl.Instance.dot.SetActive(false); LineRenderDrawerController.Instance.curLine = null; } else { endPosition = ToolUtility.ScreenPointToLocalPointInRectangle(Input.mousePosition); MainWindowCtrl.Instance.dot.transform.position = ToolUtility.ScreenPointToLocalPointInRectangle(Input.mousePosition); } DrawBezierCurver_ThreeOrder(); } }
private void RightBtnOnClick(GameObject selectedObject, Vector2 position) { Debug.LogWarning("RightBtnOnClick --> " + selectedObject.name + " ::: " + position); choosabilityNodeGroup.transform.position = ToolUtility.ScreenPointToLocalPointInRectangle(position + GlobalObject.Instance.m_OffsetRectSize_ChoosabilityNodeGroup); choosabilityNodeGroup.SetActive(true); }