Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
private void OnTriggerEnter(Collider other) { Interactable oI = other.GetComponent <Interactable>(); if (!oI || !oI.groupable) { return; } if (parent == null) { parent = oI; } else if (parent != null && parent != oI && oI.transform.parent != parent.transform) { parent.AddToGroup(oI); } }