Ejemplo n.º 1
0
        public void UpdateColors()
        {
            var color = mySettings.GetColorForMode(mySettings.UiLasersModeEntry, mySettings.UiLasersColorEntry);

            myLeftDotSprite.color     = color ?? myDefaultDotColor;
            myRightDotSprite.color    = color ?? myDefaultDotColor;
            myMouseCursorSprite.color = color ?? myDefaultCursorColor;

            var colorDarker = color?.RGBMultipliedClamped(0.5f);

            myLeftHand.field_Public_Color_0  = colorDarker ?? myDefaultLaserColorDark;
            myRightHand.field_Public_Color_0 = colorDarker ?? myDefaultLaserColorDark;

            myLeftHand.field_Public_Color_1  = color ?? myDefaultLaserColorBright;
            myRightHand.field_Public_Color_1 = color ?? myDefaultLaserColorBright;
        }