Files
tianrunCRM/Assets/CoolapeFrame/Scripts/ui/NguiExtend/CLUIPlaySound.cs
2020-07-04 14:41:25 +08:00

29 lines
707 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
********************************************************************************
*Copyright(C),coolae.net
*Author: chenbin
*Version: 2.0
*Date: 2017-01-09
*Description: 包装NGUI播放音效,支持只保存音效名方便在打包成ab时不把音效文件打进去
*Others:
*History:
*********************************************************************************
*/
using UnityEngine;
using System.Collections;
namespace Coolape
{
public class CLUIPlaySound : UIPlaySound
{
[HideInInspector]
public string soundFileName = "Tap.ogg";
public string soundName = "Tap";
public override void Play ()
{
SoundEx.playSound (soundName, volume, 1);
}
}
}