コード例 #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
        public static string GetAudioBundleVariant()
        {
            //IL_0000: Unknown result type (might be due to invalid IL or missing references)
            //IL_0005: 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_0068: Expected I4, but got Unknown
            FMODPlatform currentPlatform = FMODUtility.get_currentPlatform();

            switch ((int)currentPlatform)
            {
            case 0:
            case 2:
            case 22:
                throw new ArgumentException("fmodPlatform");

            case 1:
            case 3:
            case 8:
            case 9:
            case 10:
            case 19:
                return("desktop");

            case 4:
            case 5:
            case 6:
            case 11:
            case 12:
            case 13:
                return("mobile");

            case 7:
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
            case 20:
                throw new NotSupportedException();

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
コード例 #3
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);
        }