export default class SoundManager extends cc.Component {
bMute:boolean = false;
private static inst : SoundManager;
public static get _Instance() : SoundManager
{
if(this.inst == null)
{
this.inst = cc.find("Canvas/Managers/SoundManager").getComponent("SoundManager");
}
return this.inst;
}
public PlaySound(strPath:string)
{
console.log(strPath);
}
}
网友评论