Example #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);
        }
Example #2
0
        private void SetTexture(string themeID, WaterTexture.TextureName textureName)
        {
            switch (textureName)
            {
            case WaterTexture.TextureName.WaterFoam:
                WaterFoam = new WaterTexture(textureName, themeID);
                break;

            case WaterTexture.TextureName.WaterNormal:
                WaterNormal = new WaterTexture(textureName, themeID);
                break;
            }
        }