mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 17:17:47 -05:00
16 lines
308 B
C#
16 lines
308 B
C#
using UnityEngine;
|
|
|
|
namespace UnityAtoms.Examples
|
|
{
|
|
public class HarmfulTrigger : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private Collider2DEvent _harmfullEvent;
|
|
|
|
private void OnTriggerEnter2D(Collider2D other)
|
|
{
|
|
_harmfullEvent.Raise(other);
|
|
}
|
|
}
|
|
}
|