备份CatanBuilding瘦身独立工程
This commit is contained in:
31
Assets/Scripts/GampPlay/Build/CampPlayAudio.cs
Normal file
31
Assets/Scripts/GampPlay/Build/CampPlayAudio.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
public class CampPlayAudio : MonoBehaviour
|
||||
{
|
||||
AudioSource audioSource;
|
||||
float audioTime = 0;
|
||||
//private void Awake()
|
||||
//{
|
||||
// audioSource = GetComponent<AudioSource>();
|
||||
// if (audioSource)
|
||||
// {
|
||||
// audioTime = audioSource.clip.length;
|
||||
// }
|
||||
//}
|
||||
|
||||
//private void OnEnable()
|
||||
//{
|
||||
// if (audioSource)
|
||||
// {
|
||||
// audioSource.Play();
|
||||
// StartCoroutine(Stop());
|
||||
// }
|
||||
//}
|
||||
|
||||
//IEnumerator Stop()
|
||||
//{
|
||||
// yield return new WaitForSeconds(audioTime);
|
||||
// gameObject.SetActive(false);
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user