增加场景道具

This commit is contained in:
2024-10-19 03:04:15 +08:00
parent f7d5f98604
commit 4a9f891d76
79 changed files with 1674 additions and 27 deletions

View File

@@ -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);
}
}
}