private void Button_PressOffsetApplied(object sender, Button.PressOffsetEventArgs e) { PressedIconAnchoredPosition = new Vector2(NormalIconAnchoredPosition.x, NormalIconAnchoredPosition.y - e.Offset); IconTransform.anchoredPosition = PressedIconAnchoredPosition; }
private void Button_PressOffsetRemoved(object sender, Button.PressOffsetEventArgs e) { IconTransform.anchoredPosition = NormalIconAnchoredPosition; }
private void Button_PressOffsetRemoved(object sender, Button.PressOffsetEventArgs e) { ShortcutTextTransform.anchoredPosition = NormalShortcutAnchoredPosition; }