TO SQUASH: menu callbacks
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user