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()); } }; }
public void Break() { BindMatrix.RemoveBind(First, Second); }