TO SQUASH: main menu progress.

This commit is contained in:
2026-07-29 03:16:16 -04:00
parent c158e17541
commit 31b95d9a16
7 changed files with 829 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
using UnityEngine;
public class MenuKey : MonoBehaviour
{
public AudioClip keyTurnOpen;
public AudioClip keyTurnClose;
private AudioSource audioSource;
private Animator animator;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
audioSource = GetComponent<AudioSource>();
animator = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
}
public void playKeyTurnOpen(int _)
{
audioSource.PlayOneShot(keyTurnOpen);
}
public void playKeyTurnClose(int _)
{
audioSource.PlayOneShot(keyTurnClose);
}
}