示例#1
0
 protected override void InitializeEventInstance(EventInstance eventInstance)
 {
     //IL_001a: Unknown result type (might be due to invalid IL or missing references)
     //IL_001f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0022: Unknown result type (might be due to invalid IL or missing references)
     //IL_0023: Unknown result type (might be due to invalid IL or missing references)
     if (!(null == m_mapCharacterObject))
     {
         ATTRIBUTES_3D val = FMODUtility.To3DAttributes(m_mapCharacterObject.get_transform());
         eventInstance.set3DAttributes(val);
     }
 }
示例#2
0
        private bool StartInstance()
        {
            //IL_0001: Unknown result type (might be due to invalid IL or missing references)
            //IL_0006: Unknown result type (might be due to invalid IL or missing references)
            //IL_0070: Unknown result type (might be due to invalid IL or missing references)
            //IL_009d: Unknown result type (might be due to invalid IL or missing references)
            //IL_00bb: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
            //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
            EventInstance eventInstance = m_eventInstance;

            if (!AudioManager.isReady)
            {
                Log.Warning($"Tried to create event instance with guid {m_eventGuid} but the audio manager is not ready.", 124, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Audio\\AudioEventPlayableBehaviour.cs");
                return(false);
            }
            if (!AudioManager.TryCreateInstance(m_eventGuid, out eventInstance))
            {
                return(false);
            }
            if (m_parameters != null)
            {
                foreach (KeyValuePair <string, float> item in (Dictionary <string, float>)m_parameters)
                {
                    eventInstance.setParameterValue(item.Key, item.Value);
                }
            }
            if (m_audioContext != null)
            {
                m_audioContext.AddEventInstance(eventInstance);
            }
            else if (null != m_ownerTransform)
            {
                eventInstance.set3DAttributes(FMODUtility.To3DAttributes(m_ownerTransform));
            }
            eventInstance.start();
            m_eventInstance = eventInstance;
            return(true);
        }