Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
   }
}

Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #unity #foreach #dictionary
ADD COMMENT
Topic
Name
8+8 =