11 return Resources.Load<
LiquidProfile>(
"Scene/Profile/Liquid/" + id);
15 public static void Apply(
string id)
21 public void Apply(Color? previewColor =
null)
24 CS$<>8__locals1.<>4__this =
this;
25 CS$<>8__locals1.previewColor = previewColor;
27 this.<Apply>g__Set|6_0(tileMap.passLiquid.mat, ref CS$<>8__locals1);
28 this.<Apply>g__Set|6_0(tileMap.passFloorWater.mat, ref CS$<>8__locals1);
29 this.<Apply>g__Set|6_0(tileMap.passAutoTileWater.mat, ref CS$<>8__locals1);
33 public void ApplyColor()
35 this.modColor =
EClass._map.config.colorLiquid.Get();
40 private void <Apply>g__Set|6_0(Material mat, ref
LiquidProfile.<>c__DisplayClass6_0 A_2)
42 mat.SetFloat(
"_Transparency", this.transparency);
43 string name =
"_ModColor";
44 Color? previewColor = A_2.previewColor;
46 if (previewColor ==
null)
48 SerializableColor colorLiquid =
EClass._map.config.colorLiquid;
49 value = ((colorLiquid !=
null) ? colorLiquid.Get() : this.modColor);
53 value = previewColor.GetValueOrDefault();
55 mat.SetColor(name, value);
56 mat.SetVector(
"_SurfaceAnime", this.surfaceAnime);
57 mat.SetTexture(
"_SurfaceTex", this.surface);
61 public Color modColor;
64 public float transparency;
67 public Texture2D surface;
70 public Vector4 surfaceAnime;