23 lines
594 B
C#
23 lines
594 B
C#
using HurricaneVR.Framework.Components;
|
|
using HurricaneVR.Framework.Weapons.Guns;
|
|
using UnityEngine;
|
|
|
|
namespace Zero
|
|
{
|
|
public class ExtGunBase : HVRGunBase
|
|
{
|
|
protected override void OnHit(GameObject bullet, RaycastHit hit, Vector3 direction)
|
|
{
|
|
base.OnHit(bullet, hit, direction);
|
|
if (bullet.GetComponent<HVRDamageHandlerBase>())
|
|
{
|
|
bullet.GetComponent<HVRDamageHandlerBase>().HandleRayCastHit(DamageProvider, hit);
|
|
}
|
|
}
|
|
|
|
public void CallShoot()
|
|
{
|
|
Shoot();
|
|
}
|
|
}
|
|
} |