I’ve got this script I’m trying to only happen when an object with a “waypointcube” tag collides with it. The debug I put in the script is not working. Therefore, what is not setup correctly?
function OnCollisionEnter (collision : Collision) {
if (collision.gameObject.CompareTag ("waypointcube")){
Debug.Log("hit");
}
}