You've already forked taptap2024_GJ_chidouren
增加场景道具
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Game.Component.SceneProp
|
||||
{
|
||||
public class ColliderTriggerAction : MonoBehaviour
|
||||
{
|
||||
[SerializeField] public UnityEvent<Collider2D> OnTriggerEnterAction;
|
||||
|
||||
private void OnTriggerEnter2D (Collider2D other)
|
||||
{
|
||||
OnTriggerEnterAction?.Invoke(other);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user