예제 #1
0
 public void RemoveDragCtrl()
 {
     if (curDragCtrl != null)
     {
         curDragCtrl.m_MainNode = null;
     }
     heroNode.localRotation = Quaternion.identity;
     curDragCtrl            = null;
 }
예제 #2
0
 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;
 }