unity foreach dictionary

120

unity foreach dictionary -

ArrayList poles;
if (polesAttachedToFloor.ContainsKey(floor))
{
   poles = dictionary[floor];
}

if(poles!=null)
{
   for (int i = 0; i <= 4; i++)
   {
      poles.Add(pole);
   }
}

Comments

Submit
0 Comments