private AudioClip GetResAudioClip(string aduioname) { string clipPath = ResourcePath + aduioname; AudioClip tempClip = Resources.Load(clipPath) as AudioClip; if (tempClip == null) { LZLoger.LogMsg(clipPath + " 音频文件查找失败!请检查资源命名或资源是否存在", LogColor.Red, LogLevel.Important); } else { LZLoger.LogMsg(clipPath + " 音频加载成功!!!", LogColor.Green, LogLevel.Important); } return(tempClip); }
private void Start() { LZLoger.InitColor();//注册调试颜色输出 InputInitHandle(); }