Project_WL/Assets/Script/Collider/ColliderToActor.cs

14 lines
316 B
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
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<Actor>();
if (actor) m_Actor.OnTrigger_Damage(actor);
}
}