//step1 public void InitTagDataProvide(string tagServiceName) { try { tagDataProvider = new Baosight.iSuperframe.TagService.Controls.TagDataProvider(); this.TagServiceName = tagServiceName; tagDataProvider.ServiceName = TagServiceName; craneinfo = new CraneStatusInBay(); playSound += new PlaySoundHandler(PlaySoundEvt); } catch (Exception ex) { } }
void IAssetManagerInternal.PlaySound(IAudioSource au, AudioClip clip) { PlaySoundHandler?.Invoke(au, clip); }