15 lines
335 B
C#
15 lines
335 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace RoR2.Projectile;
|
||
|
|
||
|
[RequireComponent(typeof(ProjectileController))]
|
||
|
public class ProjectileImpactEventCaller : MonoBehaviour, IProjectileImpactBehavior
|
||
|
{
|
||
|
public ProjectileImpactEvent impactEvent;
|
||
|
|
||
|
public void OnProjectileImpact(ProjectileImpactInfo impactInfo)
|
||
|
{
|
||
|
impactEvent?.Invoke(impactInfo);
|
||
|
}
|
||
|
}
|