コード例 #1
0
 static void ChoseColor(VoxelBuilder target, int nowFloorIndex, int y, int x)
 {
     if (target.IsSetValue(nowFloorIndex, y, x))
     {
         Gizmos.color = SetValueColor;
     }
     else if (x % 2 == 0 && y % 2 == 0)
     {
         Gizmos.color = EvenPointColor;
     }
     else
     {
         Gizmos.color = OddPointColor;
     }
 }