I am trying to make a system for wall targets that would activate when hit by my projectile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetHit : MonoBehaviour
{
void OnCollisionEnter(Collision collisionInfo)
{
if (collisionInfo.collider.tag == "Bullet")
{
Debug.Log("hit");
}
}
}