// Token: 0x06001F38 RID: 7992 RVA: 0x000149CD File Offset: 0x00012BCD
 protected override void OnTriggerEnter(Collider c)
 {
     if (!base.IsProjectileExploded && LayerUtil.IsLayerInMask(base.CollisionMask, c.gameObject.layer))
     {
         this.Explode();
     }
 }
Ejemplo n.º 2
0
    // Token: 0x06001F6D RID: 8045 RVA: 0x00096C6C File Offset: 0x00094E6C
    protected override void OnCollisionEnter(Collision c)
    {
        if (!base.IsProjectileExploded && c.gameObject && LayerUtil.IsLayerInMask(base.CollisionMask, c.gameObject.layer))
        {
            Singleton <ProjectileManager> .Instance.RemoveProjectile(this.ID, true);

            GameState.Current.Actions.RemoveProjectile(this.ID, true);
        }
    }
Ejemplo n.º 3
0
        // Token: 0x0600113C RID: 4412 RVA: 0x00068BD8 File Offset: 0x00066DD8
        private void OnTriggerEnterEvent(Collider c)
        {
            if (LayerUtil.IsLayerInMask(UberstrikeLayerMasks.GrenadeCollisionMask, c.gameObject.layer))
            {
                this.behaviour.machine.PopState(true);
                Singleton <ProjectileManager> .Instance.RemoveProjectile(this.behaviour.ID, true);

                GameState.Current.Actions.RemoveProjectile(this.behaviour.ID, true);
            }
        }
Ejemplo n.º 4
0
    // Token: 0x06001F45 RID: 8005 RVA: 0x000965B8 File Offset: 0x000947B8
    protected override void OnTriggerEnter(Collider c)
    {
        if (!base.IsProjectileExploded)
        {
            if (LayerUtil.IsLayerInMask(UberstrikeLayerMasks.GrenadeCollisionMask, c.gameObject.layer))
            {
                Singleton <ProjectileManager> .Instance.RemoveProjectile(this.ID, true);

                GameState.Current.Actions.RemoveProjectile(this.ID, true);
            }
            base.PlayBounceSound(c.transform.position);
        }
    }
 // Token: 0x06001F39 RID: 7993 RVA: 0x00096438 File Offset: 0x00094638
 protected override void OnCollisionEnter(Collision c)
 {
     if (!base.IsProjectileExploded && LayerUtil.IsLayerInMask(base.CollisionMask, c.gameObject.layer))
     {
         if (c.contacts.Length > 0)
         {
             base.Explode(c.contacts[0].point, c.contacts[0].normal, TagUtil.GetTag(c.collider));
         }
         else
         {
             this.Explode();
         }
     }
 }
Ejemplo n.º 6
0
        // Token: 0x06001135 RID: 4405 RVA: 0x00068930 File Offset: 0x00066B30
        private void OnCollisionEnterEvent(Collision c)
        {
            if (LayerUtil.IsLayerInMask(UberstrikeLayerMasks.GrenadeCollisionMask, c.gameObject.layer))
            {
                this.behaviour.machine.PopState(true);
                Singleton <ProjectileManager> .Instance.RemoveProjectile(this.behaviour.ID, true);

                GameState.Current.Actions.RemoveProjectile(this.behaviour.ID, true);
            }
            else if (this.behaviour._config.IsSticky)
            {
                if (c.contacts.Length > 0)
                {
                    this.behaviour.transform.position = c.contacts[0].point + c.contacts[0].normal * this.behaviour.collider.bounds.extents.sqrMagnitude;
                }
                this.behaviour.machine.PopState(true);
                this.behaviour.machine.PushState(2);
            }
            this.PlayBounceSound(c.transform.position);
        }
Ejemplo n.º 7
0
    // Token: 0x06001F46 RID: 8006 RVA: 0x00096628 File Offset: 0x00094828
    protected override void OnCollisionEnter(Collision c)
    {
        if (!base.IsProjectileExploded)
        {
            if (LayerUtil.IsLayerInMask(UberstrikeLayerMasks.GrenadeCollisionMask, c.gameObject.layer))
            {
                Singleton <ProjectileManager> .Instance.RemoveProjectile(this.ID, true);

                GameState.Current.Actions.RemoveProjectile(this.ID, true);
            }
            else if (this.Sticky)
            {
                base.Rigidbody.isKinematic = true;
                base.collider.isTrigger    = true;
                if (c.contacts.Length > 0)
                {
                    base.transform.position = c.contacts[0].point + c.contacts[0].normal * base.collider.bounds.extents.sqrMagnitude;
                }
            }
            base.PlayBounceSound(c.transform.position);
        }
    }