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

17 lines
260 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace RoR2.Projectile;
public class ProjectileTargetComponent : MonoBehaviour
{
public Transform target { get; set; }
private void FixedUpdate()
{
if ((bool)target && !target.gameObject.activeSelf)
{
target = null;
}
}
}