14 lines
316 B
C#
14 lines
316 B
C#
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);
|
|
}
|
|
} |