Add overlay color customization

This commit is contained in:
Lncvrt committed 2025-06-24 14:16:02 -07:00
1 parent a5d37fdaf5
commit a968d6c28b
8 files changed
+2658

No files matched your search

+6
View File
@@ -44,6 +44,7 @@ public class GamePlayer : MonoBehaviour
{
var backgroundColor = PlayerPrefs.GetString("BackgroundColor", "58;58;58").Split(";");
var birdColor = PlayerPrefs.GetString("BirdColor", "255;255;255").Split(";");
var overlayColor = PlayerPrefs.GetString("OverlayColor", "255;255;255").Split(";");
try
{
Camera.main.backgroundColor = new Color(
@@ -56,6 +57,11 @@ public class GamePlayer : MonoBehaviour
int.Parse(birdColor[1])/255f,
int.Parse(birdColor[2])/255f
);
bird.transform.GetChild(0).GetComponent<SpriteRenderer>().color = new Color(
int.Parse(overlayColor[0])/255f,
int.Parse(overlayColor[1])/255f,
int.Parse(overlayColor[2])/255f
);
}
catch
{