Ejemplo n.º 1
0
    public int ColorPickerToColor(ColorPicker picker)
    {
        switch (picker)
        {
        //using hero.GetColor instead of gamemanager.GetUiColors because we have to get the final color when shuffeling
        case ColorPicker.LEFT:
            return(hero.GetColor(0));

        case ColorPicker.MLEFT:
            return(hero.GetColor(1));

        case ColorPicker.MRIGHT:
            return(hero.GetColor(2));

        case ColorPicker.RIGHT:
            return(hero.GetColor(3));

        case ColorPicker.CONST_RAND_1:
            return(constRandomColors[0]);

        case ColorPicker.CONST_RAND_2:
            return(constRandomColors[1]);

        case ColorPicker.CONST_RAND_3:
            return(constRandomColors[2]);

        case ColorPicker.CONST_RAND_4:
            return(constRandomColors[3]);
        }
        return(-1);
    }