rename spritesheet, editor toggle
This commit is contained in:
parent
76130f43f0
commit
6288796f85
|
@ -162,7 +162,7 @@ SpriteRenderer:
|
|||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 9
|
||||
m_Sprite: {fileID: 4223198500495046962, guid: c7a7c198fa143ea4f99a0b134dc5d17f, type: 3}
|
||||
m_Sprite: {fileID: -7821188078364445226, guid: c7a7c198fa143ea4f99a0b134dc5d17f, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
|
|
Before Width: | Height: | Size: 625 KiB After Width: | Height: | Size: 625 KiB |
|
@ -61,7 +61,9 @@ namespace HeavenStudio
|
|||
//static bool firstBoot = true; Unused value - Marc
|
||||
|
||||
[Header("Nightly Menu Stuff")]
|
||||
[SerializeField] private bool enableNightlyInEditor = true;
|
||||
[SerializeField] private RawImage topGradient;
|
||||
[SerializeField] private RawImage topRect;
|
||||
|
||||
private AudioSource musicSource;
|
||||
|
||||
|
@ -107,12 +109,24 @@ namespace HeavenStudio
|
|||
#if HEAVENSTUDIO_PROD
|
||||
versionText.text = GlobalGameManager.friendlyReleaseName;
|
||||
topGradient.color = new Color(0.9490197f, 0.3607843f, 0.1058824f, 1f);
|
||||
topRect.color = new Color(0.9490197f, 0.3607843f, 0.1058824f, 1f);
|
||||
#elif UNITY_EDITOR
|
||||
versionText.text = "EDITOR";
|
||||
topGradient.color = new Color(0.9490197f, 0.3607843f, 0.1058824f, 1f);
|
||||
if (enableNightlyInEditor)
|
||||
{
|
||||
topGradient.color = new Color(0.764706f, 0.3686275f, 0.7411765f, 1f);
|
||||
topRect.color = new Color(0.764706f, 0.3686275f, 0.7411765f, 1f);
|
||||
}
|
||||
else
|
||||
{
|
||||
topGradient.color = new Color(0.9490197f, 0.3607843f, 0.1058824f, 1f);
|
||||
topRect.color = new Color(0.9490197f, 0.3607843f, 0.1058824f, 1f);
|
||||
}
|
||||
|
||||
#else
|
||||
versionText.text = Application.buildGUID.Substring(0, 8) + " " + AppInfo.Date.ToString("dd/MM/yyyy hh:mm:ss");
|
||||
topGradient.color = new Color(0.764706f, 0.3686275f, 0.7411765f, 1f);
|
||||
topRect.color = new Color(0.764706f, 0.3686275f, 0.7411765f, 1f);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue