prototyping
This commit is contained in:
15
Assets/Scripts/Prep/UI/OnMusicFileSelected.cs
Normal file
15
Assets/Scripts/Prep/UI/OnMusicFileSelected.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class OnMusicFileSelected : MonoBehaviour
|
||||
{
|
||||
void Awake(){
|
||||
GetComponent<Button>().onClick.AddListener(OnClicked);
|
||||
}
|
||||
|
||||
void OnClicked(){
|
||||
MusicLoader.instance.OnFileSelected(GetComponentInChildren<Text>().text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user