public override void OnBehaviourPlay(Playable playable, FrameData info) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) if (null == m_fightMap) { return; } AudioReferenceWithParameters sound = m_parameters.sound; if (sound.get_isValid()) { AbstractFightMap fightMap = m_fightMap; Vector2Int origin = m_origin; int x = origin.get_x(); origin = m_origin; if (AudioManager.TryCreateInstance(transform: (!fightMap.TryGetCellObject(x, origin.get_y(), out CellObject cellObject)) ? null : cellObject.get_transform(), audioReference: sound, eventInstance: out m_eventInstance)) { m_eventInstance.setParameterValue("Strength", m_strength); m_eventInstance.start(); } else { Log.Warning("Failed to create event instance for cell object animation parameters named '" + m_parameters.get_name() + "'.", 109, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Animations\\CellObjectAnimationPlayableBehaviour.cs"); } }
public IEnumerator LoadResources() { if (null == m_parameters) { yield break; } AudioReferenceWithParameters sound = m_parameters.sound; if (!sound.get_isValid()) { yield break; } while (!AudioManager.isReady) { if (AssetManagerError.op_Implicit(AudioManager.error) != 0) { yield break; } yield return(null); } if (AudioManager.TryGetDefaultBankName(AudioReferenceWithParameters.op_Implicit(sound), out string bankName)) { AudioBankLoadRequest bankLoadRequest = AudioManager.LoadBankAsync(bankName); while (!bankLoadRequest.isDone) { yield return(null); } if (AssetManagerError.op_Implicit(bankLoadRequest.error) != 0) { Log.Error($"Failed to load bank named '{bankName}': {bankLoadRequest.error}", 80, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Animations\\CellObjectAnimationPlayableAsset.cs"); } else { m_loadedResources = true; } } else { Log.Warning("Could not find a bank to load sound for cell object animation parameters named '" + m_parameters.get_name() + "'.", 88, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Animations\\CellObjectAnimationPlayableAsset.cs"); } }