コード例 #1
0
 private void Button_PressOffsetApplied(object sender, Button.PressOffsetEventArgs e)
 {
     PressedIconAnchoredPosition    = new Vector2(NormalIconAnchoredPosition.x, NormalIconAnchoredPosition.y - e.Offset);
     IconTransform.anchoredPosition = PressedIconAnchoredPosition;
 }
コード例 #2
0
 private void Button_PressOffsetRemoved(object sender, Button.PressOffsetEventArgs e)
 {
     IconTransform.anchoredPosition = NormalIconAnchoredPosition;
 }
コード例 #3
0
 private void Button_PressOffsetRemoved(object sender, Button.PressOffsetEventArgs e)
 {
     ShortcutTextTransform.anchoredPosition = NormalShortcutAnchoredPosition;
 }