public void RemoveDragCtrl() { if (curDragCtrl != null) { curDragCtrl.m_MainNode = null; } heroNode.localRotation = Quaternion.identity; curDragCtrl = null; }
public void AddDragCtrl(DragRoleModel ctrl) { if (curDragCtrl != null) { Debug.Log("DragRoleModel clush!" + curDragCtrl.name + "==>" + ctrl.name); curDragCtrl.m_MainNode = null; } heroNode.localRotation = Quaternion.identity; ctrl.m_MainNode = heroNode; curDragCtrl = ctrl; }