Implemented both dice selections
This commit is contained in:
parent
2b08dc425f
commit
d04624edfd
9 changed files with 182 additions and 29 deletions
17
PuzzleGameProject/Assets/Scripts/ColorHelper.cs
Normal file
17
PuzzleGameProject/Assets/Scripts/ColorHelper.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using UnityEngine;
|
||||
|
||||
public static class ColorHelper
|
||||
{
|
||||
public static Color OkayGreen = new Color(12f, 202f, 0f);
|
||||
|
||||
public static Color AddColorTint(Color originalColor, Color tintColor, float tintIntensity)
|
||||
{
|
||||
// Clamp the tintIntensity between 0 and 1
|
||||
tintIntensity = Mathf.Clamp01(tintIntensity);
|
||||
|
||||
// Blend the original color with the tint color
|
||||
Color blendedColor = Color.Lerp(originalColor, tintColor, tintIntensity);
|
||||
|
||||
return blendedColor;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue