TO SQUASH: main menu progress.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user