How would I convert my code into visual scripting?

I’m trying to convert this code in a project I’m working on into visual script graphs, but I’m a little hung up on this one.

Little help would be appreciated!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyHealthManager : MonoBehaviour
{
    public int hitNumber;
    public float hitToKill = 3;
   
    void OnTriggerEnter(Collider hit)
    {
        if (hit.transform.CompareTag("Projectile"))
        {
            hitNumber++;
        }
        if (hitNumber >= hitToKill)
        {
            Destroy(gameObject);
        }
    }
}