public static void AddPlaneWithUVs(GeneratableMesh meshInfo, Vector3[] verts, Vector2[] uvs, Vector3 rootPos, int pointer, Color32 color) { meshInfo.AddVerticesWithPos(verts, rootPos); meshInfo.AddTriangles(_planeTris, pointer); meshInfo.AddUVs(uvs); //Ага meshInfo.Colors.Add(color); meshInfo.Colors.Add(color); meshInfo.Colors.Add(color); meshInfo.Colors.Add(color); }
static void AddPlaneUVs(this GeneratableMesh meshInfo, Byte2 tilePos) { meshInfo.AddUVs(GetCachedUVsForTile(tilePos)); }