Exemplo n.º 1
0
        private void Initialize()
        {
            WaterFoam   = new WaterTexture(WaterTexture.TextureName.WaterFoam);
            WaterNormal = new WaterTexture(WaterTexture.TextureName.WaterNormal);

            WaterClean = new WaterColor(WaterColor.ColorName.WaterClean);
            WaterDirty = new WaterColor(WaterColor.ColorName.WaterDirty);
            WaterUnder = new WaterColor(WaterColor.ColorName.WaterUnder);
        }
Exemplo n.º 2
0
        private void SetColor(string themeID, WaterColor.ColorName name)
        {
            switch (name)
            {
            case WaterColor.ColorName.WaterClean:
                WaterClean = new WaterColor(themeID, name);
                break;

            case WaterColor.ColorName.WaterDirty:
                WaterDirty = new WaterColor(themeID, name);
                break;

            case WaterColor.ColorName.WaterUnder:
                WaterUnder = new WaterColor(themeID, name);
                break;
            }
        }