Beispiel #1
0
        // Token: 0x060004AB RID: 1195 RVA: 0x00017FDC File Offset: 0x000161DC
        protected void OnTriggerExit(global::UnityEngine.Collider collider)
        {
            bool flag = global::VRGIN.Core.VR.Interpreter.IsBody(collider);

            if (flag)
            {
                this._TouchCounter--;
                bool flag2 = this._TouchCounter == 0;
                if (flag2)
                {
                    this._Controller.StopRumble(this._Rumble);
                }
            }
        }
Beispiel #2
0
        // Token: 0x060004AA RID: 1194 RVA: 0x00017F78 File Offset: 0x00016178
        protected void OnTriggerEnter(global::UnityEngine.Collider collider)
        {
            bool flag = global::VRGIN.Core.VR.Interpreter.IsBody(collider);

            if (flag)
            {
                this._TouchCounter++;
                this._Controller.StartRumble(this._Rumble);
                bool flag2 = this._TouchCounter == 1;
                if (flag2)
                {
                    this._Controller.StartRumble(new global::VRGIN.Helpers.RumbleImpulse(1000));
                }
            }
        }
Beispiel #3
0
        // Token: 0x060004BB RID: 1211 RVA: 0x0001878C File Offset: 0x0001698C
        private bool Raycast(global::VRGIN.Visuals.GUIQuad quad, out global::UnityEngine.RaycastHit hit)
        {
            global::UnityEngine.Vector3  position  = this.Laser.transform.position;
            global::UnityEngine.Vector3  forward   = this.Laser.transform.forward;
            global::UnityEngine.Collider component = quad.GetComponent <global::UnityEngine.Collider>();
            bool flag = component;
            bool result;

            if (flag)
            {
                global::UnityEngine.Ray ray;
                ray..ctor(position, forward);
                result = component.Raycast(ray, ref hit, this.GetRange(quad));
            }
            else
            {
                hit    = default(global::UnityEngine.RaycastHit);
                result = false;
            }
            return(result);
        }
Beispiel #4
0
 // Token: 0x06000249 RID: 585 RVA: 0x0000E697 File Offset: 0x0000C897
 public void OnTriggerEnter(global::UnityEngine.Collider other)
 {
     base.GetComponent <global::UnityEngine.Renderer>().material.color = global::UnityEngine.Color.red;
     this.controller             = other.GetComponentInParent <global::VRGIN.Controls.Controller>();
     this.controller.ToolEnabled = false;
 }
Beispiel #5
0
 // Token: 0x060002E7 RID: 743 RVA: 0x000111B8 File Offset: 0x0000F3B8
 public virtual bool IsBody(global::UnityEngine.Collider collider)
 {
     return(false);
 }