private void Init(VRCObjectPool objectPool) { objectPool_ = objectPool; }
public static void OnInit(VRCObjectPool objectPool) { objectPool.gameObject.AddComponent <CyanEmuObjectPoolHelper>().Init(objectPool); }
public static void OnReturn(VRCObjectPool objectPool, int index) { objectPool.GetComponent <CyanEmuObjectPoolHelper>().OnObjectReturned(index); }
void Start() { pool = (VRCObjectPool)GetComponent(typeof(VRCObjectPool)); GetComponent <BoxCollider>().isTrigger = true; }