CustomColorsUIController.SetColorIfNotEqual(ref UnityEngine.UI.Image, UnityEngine.Color, UnityEngine.Color, UnityEngine.Color)

Here are the examples of the csharp api CustomColorsUIController.SetColorIfNotEqual(ref UnityEngine.UI.Image, UnityEngine.Color, UnityEngine.Color, UnityEngine.Color) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : CustomColorsUIController.cs
License : GNU General Public License v2.0
Project Creator : Caeden117

private void LoadedPlatform(PlatformDescriptor obj)
    {
        platform = obj;

        SetColorIfNotEqual(ref redNote, platform.Colors.RedNoteColor, BeatSaberSong.DefaultLeftNote,
            BeatSaberSongContainer.Instance.DifficultyData.ColorLeft);
        SetColorIfNotEqual(ref blueNote, platform.Colors.BlueNoteColor, BeatSaberSong.DefaultRightNote,
            BeatSaberSongContainer.Instance.DifficultyData.ColorRight);
        SetColorIfNotEqual(ref redLight, platform.Colors.RedColor, BeatSaberSong.DefaultLeftColor,
            BeatSaberSongContainer.Instance.DifficultyData.EnvColorLeft);
        SetColorIfNotEqual(ref blueLight, platform.Colors.BlueColor, BeatSaberSong.DefaultRightColor,
            BeatSaberSongContainer.Instance.DifficultyData.EnvColorRight);
        SetColorIfNotEqual(ref redBoost, platform.Colors.RedBoostColor, BeatSaberSong.DefaultLeftColor,
            BeatSaberSongContainer.Instance.DifficultyData.BoostColorLeft);
        SetColorIfNotEqual(ref blueBoost, platform.Colors.BlueBoostColor, BeatSaberSong.DefaultRightColor,
            BeatSaberSongContainer.Instance.DifficultyData.BoostColorRight);
        SetColorIfNotEqual(ref obstacle, platform.Colors.ObstacleColor, BeatSaberSong.DefaultLeftColor,
            BeatSaberSongContainer.Instance.DifficultyData.ObstacleColor);

        platform.Colors.RedColor = eventAppearance.RedColor = redLight.color;
        platform.Colors.BlueColor = eventAppearance.BlueColor = blueLight.color;
        platform.Colors.RedBoostColor = eventAppearance.RedBoostColor = redBoost.color;
        platform.Colors.BlueBoostColor = eventAppearance.BlueBoostColor = blueBoost.color;
        obstacleAppearance.DefaultObstacleColor = obstacle.color;
    }