void DoubleMouseUp(Vector2 position) { if (onDoubleMouseUp.IsNotNull()) { onDoubleMouseUp.Invoke(position); } }
void DoubleClick(Vector2 position) { singleMouseUpIsFired = false; if (onDoubleClick.IsNotNull()) { onDoubleClick.Invoke(position); } }
void SingleClick(Vector2 position) { if (onSingleClick.IsNotNull()) { onSingleClick.Invoke(position); } if (singleMouseUpIsFired) { singleMouseUpIsFired = false; if (onSingleMouseUp.IsNotNull()) { onSingleMouseUp.Invoke(position); } } }