using System.Collections; using System.Collections.Generic; using UnityEngine; public class ColliderToActor : MonoBehaviour { public Actor m_Actor; private void OnTriggerEnter(Collider other) { var actor = other.GetComponent(); if (actor) m_Actor.OnTrigger_Damage(actor); } }