Пример #1
0
 private void SetColours(int value)
 {
     if (value == 2)
     {
         currentColours = pointColours[1];
     }
     else if (value == 3)
     {
         currentColours = pointColours[2];
     }
     else if (value >= 4)
     {
         currentColours = pointColours[3];
     }
 }
Пример #2
0
 private void SetColours(float value)
 {
     if (value < 500)
     {
         currentColours = pointColours[0];
     }
     else if (value >= 500 && value < 1000)
     {
         currentColours = pointColours[1];
     }
     else if (value >= 1000 && value < 5000)
     {
         currentColours = pointColours[2];
     }
     else if (value >= 5000)
     {
         currentColours = pointColours[3];
     }
 }