Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
トリガーに入ったらイベントを呼び出す
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class OnTriggerEnterEvent : MonoBehaviour
{
public UnityEvent onTriggerEnterEv = new UnityEvent ();
void OnTriggerEnter(Collider collision)
{
onTriggerEnterEv.Invoke ();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment