private static Color GetStandardColor(uint polyRef, int polyArea, int colorId , NavmeshQuery query, uint[] markPolys, int markPolyCount) { Color result; if ((query != null && query.IsInClosedList(polyRef)) || IsInList(polyRef, markPolys, markPolyCount) != -1) { result = polygonOverlayColor; } else { if (colorId == -1) { if (polyArea == 0) { result = new Color(0, 0.75f, 1, surfaceAlpha); } else { result = ColorUtil.IntToColor(polyArea, surfaceAlpha); } } else { result = ColorUtil.IntToColor(colorId, surfaceAlpha); } } return(result); }
private static Color GetStandardColor(uint polyRef, int polyArea, int colorId , NavmeshQuery query, uint[] markPolys, int markPolyCount) { Color result; if ((query != null && query.IsInClosedList(polyRef)) || IsInList(polyRef, markPolys, markPolyCount) != -1) { result = polygonOverlayColor; } else { if (colorId == -1) { if (polyArea == 0) result = new Color(0, 0.75f, 1, surfaceAlpha); else result = ColorUtil.IntToColor(polyArea, surfaceAlpha); } else result = ColorUtil.IntToColor(colorId, surfaceAlpha); } return result; }