Пример #1
0
 public void OnHitAttack(AttackHitInfo info, AttackHitColliderProcessor.HitParam hit_param)
 {
     //IL_007a: Unknown result type (might be due to invalid IL or missing references)
     //IL_007f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0084: Unknown result type (might be due to invalid IL or missing references)
     //IL_0090: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ae: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
     if (attackHitChecker != null)
     {
         attackHitChecker.OnHitAttack(info, hit_param);
     }
     if (isCharacterHitDelete && hit_param.toObject is Character)
     {
         isLandHitDelete = false;
         OnDestroy();
     }
     else if ((isCharacterHitDelete || !isShotArrow) && isObjectHitDelete)
     {
         isLandHitDelete = true;
         landHitPosition = Utility.ClosestPointOnCollider(hit_param.toCollider, prevPosition);
         landHitRotation = _transform.get_rotation() * Quaternion.Euler(new Vector3(-90f, 0f, 0f));
         _rigidbody.Sleep();
     }
 }
Пример #2
0
 public void OnHitAttack(AttackHitInfo info, AttackHitColliderProcessor.HitParam hit_param)
 {
     if (m_attackHitChecker != null)
     {
         m_attackHitChecker.OnHitAttack(info, hit_param);
     }
 }