using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace FXV
{
///
/// 空气墙
///
public class FXVCollision : MonoBehaviour
{
public float hitSize = 5.0f;
private void OnTriggerStay(Collider other)
{
if (other.tag == "plane")
{
FXVShield shield = other.gameObject.GetComponentInParent();
if (shield && !shield.GetIsDuringActivationAnim())
{
Vector3 hitPoint = other.ClosestPoint(this.transform.position);
shield.OnHit(hitPoint, hitSize);
}
}
}
}
}