ソースコード
使用例
using UnityEngine; public class Example : MonoBehaviour { private void Awake() { GCEvent.Initialize(); GCEvent.mOnCollect += OnCollect; } private void OnDestroy() { GCEvent.mOnCollect -= OnCollect; } private void OnCollect() { Debug.Log( "ピカチュウ" ); } private void Update() { GCEvent.Update(); } }