Question: "unit" used in the same way in the following two sentences?

After the battle the soldier had trouble rejoining his unit.

The coach said the offensive unit did a good job.
Answer: the same meaning
Question: "shrinkage" used in the same way in the following two sentences?

The material lost 2 inches per yard in shrinkage.

Shrinkage is the retail trade's euphemism for shoplifting.
Answer: different meanings
Question: "break" used in the same way in the following two sentences?

Break a promise.

Break a law.
Answer: the same meaning
Question: "credit" used in the same way in the following two sentences?

I give you credit for owning up to your mistake.

He arrived five minutes late, but to his credit he did work an extra ten minutes at the end of his shift.
Answer:
the same meaning