| | |
| | | { |
| | | public static AudioClip LoadAudio(string _folderName, string _clipName) |
| | | { |
| | | return ResManager.Instance.LoadAsset<AudioClip>("Audio/" + _folderName, _clipName); |
| | | return ResManager.Instance.LoadAsset<AudioClip>("Audio/" + _folderName, _clipName, false); |
| | | } |
| | | |
| | | public static void LoadAudioAsync(string _folderName, string _clipName, Action<bool, UnityEngine.Object> _callBack) |
| | | { |
| | | ResManager.Instance.LoadAssetAsync<AudioClip>("Audio/" + _folderName, _clipName, _callBack); |
| | | ResManager.Instance.LoadAssetAsync<AudioClip>("Audio/" + _folderName, _clipName, _callBack, false); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | #endif |
| | | |
| | | //needExt 是否需要函数内部添加后缀 |
| | | public T LoadAsset<T> (string directory, string name, bool needExt = true) where T : UnityEngine.Object |
| | | { |
| | | T asset = null; |
| | |
| | | return LoadAssetInternal<T>(directory, name, needExt); |
| | | } |
| | | |
| | | //needExt 是否需要函数内部添加后缀 |
| | | private T LoadAssetInternal<T>(string directory, string name, bool needExt = true) where T : UnityEngine.Object |
| | | { |
| | | T asset = null; |
| | |
| | | m_GuideTalkRect.SetActive(false);
|
| | | DisplayGuide();
|
| | | }
|
| | | SoundPlayer.Instance.PlayUIAudio(stepConfig.voice);
|
| | | }
|
| | |
|
| | | int tryGuideCount = 0;
|