private void CheckForUnitUnlock() { int totalMissionsCompleted = GameMetrics.GetMetric(GameMetricsList.TOTAL_MISSIONS_DONE); if (UnitUnlockPlan.Unlocks.ContainsKey(totalMissionsCompleted)) { UnlockUnit(UnitUnlockPlan.Unlocks[totalMissionsCompleted]); } }