r2mods/ilspy_dump/ror2_csproj/RoR2.Projectile/ProjectileImpactEventCaller.cs

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);
}
}