Initial commit
This commit is contained in:
43
Assets/Scripts/Age/HairColorSettings.cs
Normal file
43
Assets/Scripts/Age/HairColorSettings.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class HairColorSettings : MonoBehaviour
|
||||
{
|
||||
[Header("Ęîëłđ ńčâčíč íŕ đłçíčő ďëŕíĺňŕő")]
|
||||
public bool useDefaultGray = true;
|
||||
|
||||
[Header("Ęîëüîđč ńčâčíč äë˙ ęîćíîż ďëŕíĺňč")]
|
||||
public Color mercuryHairColor = new Color(0.85f, 0.85f, 0.85f);
|
||||
public Color venusHairColor = new Color(0.95f, 0.90f, 0.80f);
|
||||
public Color earthHairColor = new Color(0.80f, 0.80f, 0.80f);
|
||||
public Color moonHairColor = new Color(0.90f, 0.90f, 0.95f);
|
||||
public Color marsHairColor = new Color(0.85f, 0.75f, 0.70f);
|
||||
public Color jupiterHairColor = new Color(0.80f, 0.85f, 0.90f);
|
||||
public Color saturnHairColor = new Color(0.90f, 0.85f, 0.75f);
|
||||
public Color uranusHairColor = new Color(0.75f, 0.90f, 0.90f);
|
||||
public Color neptuneHairColor = new Color(0.70f, 0.75f, 0.95f);
|
||||
public Color plutoHairColor = new Color(0.80f, 0.80f, 0.90f);
|
||||
|
||||
private static readonly Color defaultGray = Color.white;
|
||||
|
||||
public Color GetHairColor(int planetIndex)
|
||||
{
|
||||
if (useDefaultGray) return defaultGray;
|
||||
|
||||
switch (planetIndex)
|
||||
{
|
||||
case 0: return mercuryHairColor;
|
||||
case 1: return venusHairColor;
|
||||
case 2: return earthHairColor;
|
||||
case 3: return moonHairColor;
|
||||
case 4: return marsHairColor;
|
||||
case 5: return jupiterHairColor;
|
||||
case 6: return saturnHairColor;
|
||||
case 7: return uranusHairColor;
|
||||
case 8: return neptuneHairColor;
|
||||
case 9: return plutoHairColor;
|
||||
default: return defaultGray;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user