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