// 英雄死亡处理 public void onHeroDie(GameEvent e) { //Debug.Log("Recieve HeroDie Call ..."); HeroData obj = (HeroData)e.data; //英雄死亡播放死亡音效 调用31artresource中diesound字段 //Debug.Log(obj.TableID); HeroTemplate _HeroData = (HeroTemplate)DataTemplate.GetInstance().m_HeroTable.getTableData(obj.TableID); ArtresourceTemplate _Artresourcedata = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(_HeroData.getArtresources()); AudioControler.Inst.PlaySound(_Artresourcedata.getDiesound()); if (obj != null) { UI_SkillIcon icon = mIcons[obj.GUID]; if (icon) { icon.OnHeroDead(obj.GUID); UI_FightControler.Inst.isWaitLock(obj.GUID); } } }