TO SQUASH: menu callbacks

This commit is contained in:
2026-07-30 03:03:24 -04:00
parent 2b2492e86e
commit 011fc467b8
7 changed files with 174 additions and 10 deletions
+2 -3
View File
@@ -6,6 +6,8 @@ public class MenuKey : MonoBehaviour
public AudioClip keyTurnClose;
public MenuCallbackHolder callbackHolder;
private AudioSource audioSource;
private Animator animator;
@@ -22,8 +24,6 @@ public class MenuKey : MonoBehaviour
private float translationTargetY = 0f;
private MenuCallbackHolder callbackHolder;
private static float animationDuration = 0.45f;
private static float[] rowPositions = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
@@ -33,7 +33,6 @@ public class MenuKey : MonoBehaviour
{
audioSource = GetComponent<AudioSource>();
animator = GetComponent<Animator>();
callbackHolder = new MenuCallbackHolder();
// Precompute the row positions based on the number of rows and the desired spacing.
for (int i = 0; i < rowPositions.Length; i++)