リポジトリ
使用例
using Kogane; using System; using UnityEngine; public class Example : MonoBehaviour { public Action onClick; private void Awake() { // onClick 実行後に onClick は null になる ActionUtils.CallOnce( ref onClick ); } }
using Kogane; using System; using UnityEngine; public class Example : MonoBehaviour { public Action onClick; private void Awake() { // onClick 実行後に onClick は null になる ActionUtils.CallOnce( ref onClick ); } }