Exemplo n.º 1
0
 // Token: 0x06000635 RID: 1589 RVA: 0x0001E09C File Offset: 0x0001C29C
 private void Awake()
 {
     global::EscalationVR.EscalationVRContext context = new global::EscalationVR.EscalationVRContext();
     global::VRGIN.Core.VRManager.Create <global::EscalationVR.EscalationInterpreter>(context);
     global::VRGIN.Core.VR.Manager.SetMode <global::EscalationVR.MasoMode>();
     global::UnityEngine.SceneManagement.SceneManager.activeSceneChanged += delegate(global::UnityEngine.SceneManagement.Scene current, global::UnityEngine.SceneManagement.Scene next)
     {
         global::UnityChanLipSync      lipSync = global::UnityEngine.Object.FindObjectOfType <global::UnityChanLipSync>();
         global::FlagActivator_Skanojo flagActivator_Skanojo = global::UnityEngine.Object.FindObjectOfType <global::FlagActivator_Skanojo>();
         bool flag = lipSync;
         if (flag)
         {
             bool flag2 = !lipSync.audio_.spatialize;
             if (flag2)
             {
                 global::UnityEngine.Debug.Log("SPATIALIZE");
                 global::UnityEngine.Transform        transform         = flagActivator_Skanojo.transform.FindDescendant("Head");
                 global::UnityEngine.AudioSource      audioSource       = global::VRGIN.Helpers.UnityHelper.CopyComponent <global::UnityEngine.AudioSource>(lipSync.audio_, transform.gameObject);
                 global::System.Reflection.MethodInfo onAudioFilterRead = typeof(global::LipSyncCore).GetMethod("OnAudioFilterRead", 36);
                 object[] parameterArray = new object[2];
                 audioSource.gameObject.AddComponent <global::EscalationVR.ForwardAudioEvent>().AudioFilterRead = delegate(float[] p1, int p2)
                 {
                     parameterArray[0] = p1;
                     parameterArray[1] = p2;
                     onAudioFilterRead.Invoke(lipSync, parameterArray);
                 };
                 lipSync.audio_              = audioSource;
                 lipSync.audio_.spatialize   = true;
                 lipSync.audio_.spatialBlend = 1f;
             }
         }
     };
 }
Exemplo n.º 2
0
        public virtual void _1_1fire(global::Compatlib.System.Object n1, global::Compatlib.System.Windows.StartupEventArgs n2)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.System.Windows.StartUpEvent: void __fire(Compatlib.System.Object, Compatlib.System.Windows.StartupEventArgs)]
            foreach (Compatlib.System.Windows.StartupEventHandler handler in handlers)
            {
                global::System.Reflection.MethodInfo mi = handler.owner.GetType().GetMethod(org.xmlvm._nUtil.toNativeString(handler.method._fvalue));
                mi.Invoke(handler.owner, new object[] { n1, n2 });
            }
//XMLVM_END_WRAPPER[Compatlib.System.Windows.StartUpEvent: void __fire(Compatlib.System.Object, Compatlib.System.Windows.StartupEventArgs)]
        }
Exemplo n.º 3
0
        public virtual void _1_1fire(global::Compatlib.System.Object n1, global::Compatlib.Microsoft.Devices.Sensors.AccelerometerReadingEventArgs n2)
        {
//XMLVM_BEGIN_WRAPPER[Compatlib.Microsoft.Devices.Sensors.ReadingChangedEvent: void __fire(Compatlib.System.Object, Compatlib.Microsoft.Devices.Sensors.AccelerometerReadingEventArgs)]
            foreach (Compatlib.Microsoft.Devices.Sensors.ReadingChangedEventHandler handler in handlers)
            {
                global::System.Reflection.MethodInfo mi = handler.owner.GetType().GetMethod(org.xmlvm._nUtil.toNativeString(handler.method._fvalue));
                mi.Invoke(handler.owner, new object[] { n1, n2 });
            }
//XMLVM_END_WRAPPER[Compatlib.Microsoft.Devices.Sensors.ReadingChangedEvent: void __fire(Compatlib.System.Object, Compatlib.Microsoft.Devices.Sensors.AccelerometerReadingEventArgs)]
        }
Exemplo n.º 4
0
        // Token: 0x06000580 RID: 1408 RVA: 0x0001B790 File Offset: 0x00019990
        private static void InvokeIfExists(this object objectToCheck, string methodName, params object[] parameters)
        {
            global::System.Type type = objectToCheck.GetType();
            global::System.Reflection.MethodInfo method = type.GetMethod(methodName, 52);
            bool flag = method != null;

            if (flag)
            {
                method.Invoke(objectToCheck, parameters);
            }
        }
Exemplo n.º 5
0
        public virtual global::System.Object newInstance()
        {
//XMLVM_BEGIN_WRAPPER[java.lang.Class: java.lang.Object newInstance()]
            org.xmlvm._nTIB       tib        = (org.xmlvm._nTIB) this._ftib;
            global::System.Type   nativeType = tib.getNativeType();
            global::System.Object obj        = global::System.Activator.CreateInstance(nativeType);
            global::System.Reflection.MethodInfo jConstructor = nativeType.GetMethod("this", new global::System.Type[] {});
            jConstructor.Invoke(obj, new object[] {});
            return(obj);
//XMLVM_END_WRAPPER[java.lang.Class: java.lang.Object newInstance()]
        }
Exemplo n.º 6
0
 public string ToStringWithCulture(object objectToConvert) {
     if ((objectToConvert == null)) {
         throw new global::System.ArgumentNullException("objectToConvert");
     }
     global::System.Type type = objectToConvert.GetType();
     global::System.Type iConvertibleType = typeof(global::System.IConvertible);
     if (iConvertibleType.IsAssignableFrom(type)) {
         return ((global::System.IConvertible)(objectToConvert)).ToString(this.formatProvider);
     }
     global::System.Reflection.MethodInfo methInfo = type.GetMethod("ToString", new global::System.Type[] {
                 iConvertibleType});
     if ((methInfo != null)) {
         return ((string)(methInfo.Invoke(objectToConvert, new object[] {
                     this.formatProvider})));
     }
     return objectToConvert.ToString();
 }
Exemplo n.º 7
0
            public override global::System.Object invoke(java.lang.Object n1, org.xmlvm._nArrayAdapter <global::System.Object> n2)
            {
                org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo,
                                               java.lang.reflect.Method._nImpl> adapter
                    = (org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo,
                                                      java.lang.reflect.Method._nImpl>) this._faddress;
                global::System.Reflection.MethodInfo      nativeMethodInfo     = adapter.getMemberInfoAdaptee();
                global::System.Reflection.ParameterInfo[] nativeParameterInfos = nativeMethodInfo.GetParameters();
                object[] methodNativeParameters = n2.getCSharpArray();
                for (int i = 0; i < methodNativeParameters.Length; i++)
                {
                    methodNativeParameters[i]
                        = org.xmlvm._nTIB.unboxIfPrimitive((java.lang.Object)methodNativeParameters[i], nativeParameterInfos[i].ParameterType);
                }
                object returnValue = nativeMethodInfo.Invoke(n1, methodNativeParameters);

                returnValue = org.xmlvm._nTIB.boxIfPrimitive(returnValue, nativeMethodInfo.ReturnType);
                return(returnValue);
            }
Exemplo n.º 8
0
    /// <summary>
    /// This is called from the compile/run appdomain to convert objects within an expression block to a string
    /// </summary>
    public static string ToStringWithCulture(object objectToConvert)
    {
        if ((objectToConvert == null))
        {
            throw new global::System.ArgumentNullException("objectToConvert");
        }

        global::System.Type t = objectToConvert.GetType();
        global::System.Reflection.MethodInfo method = t.GetMethod("ToString", new global::System.Type[] {
            typeof(global::System.IFormatProvider)
        });
        if ((method == null))
        {
            return(objectToConvert.ToString());
        }
        else
        {
            return((string)(method.Invoke(objectToConvert, new object[] { formatProviderField })));
        }
    }
Exemplo n.º 9
0
            public override global::System.Object newInstance(org.xmlvm._nArrayAdapter <global::System.Object> n1)
            {
                org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo,
                                               java.lang.reflect.Constructor._nImpl> adapter
                    = (org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo,
                                                      java.lang.reflect.Constructor._nImpl>) this._faddress;
                global::System.Reflection.MethodInfo jConstructorInfo = adapter.getMemberInfoAdaptee();
                global::System.Type nativeType = jConstructorInfo.DeclaringType;
                object resultObj = global::System.Activator.CreateInstance(nativeType);

                object[] jConstructorParameters = n1.getCSharpArray();
                global::System.Reflection.ParameterInfo[] parameterInfos = jConstructorInfo.GetParameters();
                for (int i = 0; i < jConstructorParameters.Length; i++)
                {
                    jConstructorParameters[i]
                        = org.xmlvm._nTIB.unboxIfPrimitive((java.lang.Object)jConstructorParameters[i], parameterInfos[i].ParameterType);
                }
                jConstructorInfo.Invoke(resultObj, jConstructorParameters);
                return(resultObj);
            }