Ejemplo n.º 1
0
    private void FillPlatform(EColor_Value fillColor)
    {
        EColor_Value mixedColor = ColorHelper.AddColors(currentColor, fillColor); //mix the current color with the color received

        currentColor = mixedColor;                                                //set the new mixed color as current
        Color resultColor = ColorHelper.GetRealColor(currentColor);               //convert enum to color

        OwnedMaterial.SetColor("_Color", resultColor);                            //apply to material
    }