unity for loop with dictionary code example
Example: unity foreach dictionary
foreach(var key in someDictionary.Keys) // loop through keys
foreach(var value in someDictionary.Values) // loop through values
foreach(KeyValuePair<K, V> p in someDictionary) // loop through both