1234567891011121314151617181920 |
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class ButtonAudio : MonoBehaviour {
- private string mPath = "SE001";
- public void Start()
- {
- Button button = this.gameObject.GetComponent<Button>();
- if(button!= null)
- {
- button.onClick.AddListener(Play);
- }
- }
- public void Play(){
-
- }
- }
|