Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.Events;
- public class GameTrigger : MonoBehaviour
- {
- public UnityEvent OnTriggerEvent;
- private void OnTriggerEnter(Collider other) {
- if (OnTriggerEvent != null) OnTriggerEvent.Invoke();
- }
- }
Add Comment
Please, Sign In to add comment