// Token: 0x0600A51B RID: 42267 RVA: 0x002E7640 File Offset: 0x002E5840 private void DropDraggingActionOrderButton(Vector3 pos) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DropDraggingActionOrderButtonVector3_hotfix != null) { this.m_DropDraggingActionOrderButtonVector3_hotfix.call(new object[] { this, pos }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.m_draggingActionOrderButton == null) { return; } foreach (ArenaActionOrderButton arenaActionOrderButton in this.m_actionOrderButtons) { if (arenaActionOrderButton.GetHero() != null && arenaActionOrderButton.gameObject.activeSelf) { RectTransform rect = arenaActionOrderButton.transform as RectTransform; if (RectTransformUtility.RectangleContainsScreenPoint(rect, pos, this.m_camera)) { BattleHero hero = arenaActionOrderButton.GetHero(); arenaActionOrderButton.SetHero(this.m_draggingActionOrderButton.GetHero()); this.m_actionOrderButtons[this.m_draggingActionOrderButtonIndex].SetHero(hero); AudioUtility.PlaySound(SoundTableId.SoundTableId_DropHero); break; } } } this.DestroyDragginActionOrderButton(); }
// Token: 0x0600523A RID: 21050 RVA: 0x00186450 File Offset: 0x00184650 public void Execute(string strParams) { ArgumentsParser argumentsParser = new ArgumentsParser("s", strParams); IAudioPlayback audioPlayback = AudioUtility.PlaySound(argumentsParser.GetString(0)); if (audioPlayback != null) { Debug.Log(string.Format("sound length: {0} seconds.", audioPlayback.Seconds)); } }
// Token: 0x060143D4 RID: 82900 RVA: 0x0052615C File Offset: 0x0052435C public void OnSound(FxEvent e, string name) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnSoundFxEventString_hotfix != null) { this.m_OnSoundFxEventString_hotfix.call(new object[] { this, e, name }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; AudioUtility.PlaySound(name); }
public static int PlaySound_s(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 1, typeof(string))) { string name; LuaObject.checkType(l, 1, out name); IAudioPlayback o = AudioUtility.PlaySound(name); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else if (LuaObject.matchType(l, total, 1, typeof(SoundTableId))) { SoundTableId id; LuaObject.checkEnum <SoundTableId>(l, 1, out id); AudioUtility.PlaySound(id); LuaObject.pushValue(l, true); result = 1; } else if (LuaObject.matchType(l, total, 1, typeof(AudioClip))) { AudioClip a; LuaObject.checkType <AudioClip>(l, 1, out a); AudioUtility.PlaySound(a); LuaObject.pushValue(l, true); result = 1; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function PlaySound to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600A518 RID: 42264 RVA: 0x002E742C File Offset: 0x002E562C private void CreateDraggingActionOrderButton(BattleHero hero) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateDraggingActionOrderButtonBattleHero_hotfix != null) { this.m_CreateDraggingActionOrderButtonBattleHero_hotfix.call(new object[] { this, hero }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.DestroyDragginActionOrderButton(); Canvas componentInParent = base.GetComponentInParent <Canvas>(); this.m_draggingActionOrderButton = this.CreateActionOrderButton(hero, componentInParent.transform); this.m_draggingActionOrderButton.transform.SetAsLastSibling(); AudioUtility.PlaySound(SoundTableId.SoundTableId_DragHero); CommonUIController.Instance.EnableInput(false); }
// Token: 0x0600E355 RID: 58197 RVA: 0x003D2850 File Offset: 0x003D0A50 private void OnSkillToggleValueChanged(bool isOn) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnSkillToggleValueChangedBoolean_hotfix != null) { this.m_OnSkillToggleValueChangedBoolean_hotfix.call(new object[] { this, isOn }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.ShowSelectImage(isOn); if (isOn) { if (!this.m_hasUnLocked) { Hero hero = this.m_playerContext.GetHero(this.m_heroId); this.m_hasUnLocked = hero.Fetters.ContainsKey(this.HeroFetterInfo.ID); } if (this.m_hasUnLocked) { AudioUtility.PlaySound("UI_LargeIconClick"); } else if (this.m_playerContext.CanUnlockHeroFetter(this.m_heroId, this.HeroFetterInfo.ID) == 0) { AudioUtility.PlaySound("UI_ReadytoUnlock"); } else { AudioUtility.PlaySound("UI_CantUnlock"); } if (this.EventOnClick != null) { this.EventOnClick(this); } } }
// Use this for initialization void Start() { AudioUtility.PlaySound(atts[0]); // Debug.Log( Resources.Load<Preofds>("Audio/Preofds_1").atts.Count); }