Добрый вечер) Помогите пожалуйста код с шарпа в js перевести ( в js вообще не понимаю)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class dialogHolder : MonoBehaviour
{
public string dialog;
private DialogManager dMAn;
// Start is called before the first frame update
void Start()
{
dMAn = FindObjectOfType<DialogManager>();
}
// Update is called once per frame
void Update()
{
}
void OnTriggerEnter2D(Collider2D other)
{
Debug.Log("!!!!!!!!");
if (other.gameObject.name == "Player")
{
dMAn.ShowBox(dialog);
}
}
}