Example #1
0
    /// <summary>
    /// Takes a random color and assigns it to the property PlayerColour.
    /// </summary>
    public void AssignRandomColor()
    {
        Color32 color = (Color32)Random.ColorHSV(0f, 1f, .3f, 1f, 1f, 1f, 1f, 1f);

        PlayerColour = ColorExtensions.ColorToUInt(color);
    }