GetComponentsInChildren to list code example
Example: GetComponentsInChildren to list
List<Collider> collidersToTurnOff = new List<Collider>();
void Awake()
{
GetComponentsInChildren(collidersToTurnOff);
}
List<Collider> collidersToTurnOff = new List<Collider>();
void Awake()
{
GetComponentsInChildren(collidersToTurnOff);
}