void ChangeCollider(ColliderNames name) { boxCollider.enabled = name == ColliderNames.Default; smallBoxCollider.enabled = name == ColliderNames.Small; dieBoxCollider.enabled = name == ColliderNames.Die; }
void ChangeColliderIf(bool condition, ColliderNames name) { ChangeCollider(condition ? name : ColliderNames.Default); }