예제 #1
0
 protected virtual void OnEnable()
 {
     logic.onBeginDrag += eventData =>
     {
         if (eventData.button == PointerEventData.InputButton.Right)
         {
             BindMatrix.AddBind(this, MouseBind.Get(), Vector2.zero, Bind.MouseBindStrength);
         }
     };
     logic.onEndDrag += eventData =>
     {
         if (eventData.button == PointerEventData.InputButton.Right)
         {
             BindMatrix.RemoveBind(this, MouseBind.Get());
         }
     };
 }
예제 #2
0
 public void Break()
 {
     BindMatrix.RemoveBind(First, Second);
 }