Update AirRally.cs
Replace references to 'noon' with 'twilight'
This commit is contained in:
parent
2b30b7de97
commit
276b094301
|
@ -141,7 +141,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
parameters = new List<Param>()
|
parameters = new List<Param>()
|
||||||
{
|
{
|
||||||
new Param("start", AirRally.DayNightCycle.Day, "Start Time", "Set the time of day for the start of the event."),
|
new Param("start", AirRally.DayNightCycle.Day, "Start Time", "Set the time of day for the start of the event."),
|
||||||
new Param("end", AirRally.DayNightCycle.Noon, "End Time", "Set the time of day for the end of the event."),
|
new Param("end", AirRally.DayNightCycle.Twilight, "End Time", "Set the time of day for the end of the event."),
|
||||||
new Param("ease", EasingFunction.Ease.Linear, "Ease", "Set the easing of the action.")
|
new Param("ease", EasingFunction.Ease.Linear, "Ease", "Set the easing of the action.")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -337,9 +337,9 @@ namespace HeavenStudio.Games
|
||||||
[SerializeField] private Material bgMat;
|
[SerializeField] private Material bgMat;
|
||||||
[SerializeField] private Material objectMat;
|
[SerializeField] private Material objectMat;
|
||||||
[SerializeField] private Material cloudMat;
|
[SerializeField] private Material cloudMat;
|
||||||
[SerializeField] private Color noonColor;
|
[SerializeField] private Color twilightColor;
|
||||||
[SerializeField] private Color nightColor;
|
[SerializeField] private Color nightColor;
|
||||||
[SerializeField] private Color noonColorCloud;
|
[SerializeField] private Color twilightColorCloud;
|
||||||
[SerializeField] private Color nightColorCloud;
|
[SerializeField] private Color nightColorCloud;
|
||||||
private DayNightCycle lastTime = DayNightCycle.Day;
|
private DayNightCycle lastTime = DayNightCycle.Day;
|
||||||
private DayNightCycle currentTime = DayNightCycle.Day;
|
private DayNightCycle currentTime = DayNightCycle.Day;
|
||||||
|
@ -684,20 +684,20 @@ namespace HeavenStudio.Games
|
||||||
timeEase = ease;
|
timeEase = ease;
|
||||||
objectsColorFrom = lastTime switch
|
objectsColorFrom = lastTime switch
|
||||||
{
|
{
|
||||||
DayNightCycle.Noon => Color.black,
|
DayNightCycle.Twilight => Color.black,
|
||||||
_ => Color.white,
|
_ => Color.white,
|
||||||
};
|
};
|
||||||
|
|
||||||
objectsColorTo = currentTime switch
|
objectsColorTo = currentTime switch
|
||||||
{
|
{
|
||||||
DayNightCycle.Noon => Color.black,
|
DayNightCycle.Twilight => Color.black,
|
||||||
_ => Color.white,
|
_ => Color.white,
|
||||||
};
|
};
|
||||||
|
|
||||||
bgColorFrom = lastTime switch
|
bgColorFrom = lastTime switch
|
||||||
{
|
{
|
||||||
DayNightCycle.Day => Color.white,
|
DayNightCycle.Day => Color.white,
|
||||||
DayNightCycle.Noon => noonColor,
|
DayNightCycle.Twilight => twilightColor,
|
||||||
DayNightCycle.Night => nightColor,
|
DayNightCycle.Night => nightColor,
|
||||||
_ => throw new System.NotImplementedException()
|
_ => throw new System.NotImplementedException()
|
||||||
};
|
};
|
||||||
|
@ -705,7 +705,7 @@ namespace HeavenStudio.Games
|
||||||
bgColorTo = currentTime switch
|
bgColorTo = currentTime switch
|
||||||
{
|
{
|
||||||
DayNightCycle.Day => Color.white,
|
DayNightCycle.Day => Color.white,
|
||||||
DayNightCycle.Noon => noonColor,
|
DayNightCycle.Twilight => twilightColor,
|
||||||
DayNightCycle.Night => nightColor,
|
DayNightCycle.Night => nightColor,
|
||||||
_ => throw new System.NotImplementedException()
|
_ => throw new System.NotImplementedException()
|
||||||
};
|
};
|
||||||
|
@ -713,7 +713,7 @@ namespace HeavenStudio.Games
|
||||||
cloudColorFrom = lastTime switch
|
cloudColorFrom = lastTime switch
|
||||||
{
|
{
|
||||||
DayNightCycle.Day => Color.white,
|
DayNightCycle.Day => Color.white,
|
||||||
DayNightCycle.Noon => noonColorCloud,
|
DayNightCycle.Twilight => twilightColorCloud,
|
||||||
DayNightCycle.Night => nightColorCloud,
|
DayNightCycle.Night => nightColorCloud,
|
||||||
_ => throw new System.NotImplementedException()
|
_ => throw new System.NotImplementedException()
|
||||||
};
|
};
|
||||||
|
@ -721,7 +721,7 @@ namespace HeavenStudio.Games
|
||||||
cloudColorTo = currentTime switch
|
cloudColorTo = currentTime switch
|
||||||
{
|
{
|
||||||
DayNightCycle.Day => Color.white,
|
DayNightCycle.Day => Color.white,
|
||||||
DayNightCycle.Noon => noonColorCloud,
|
DayNightCycle.Twilight => twilightColorCloud,
|
||||||
DayNightCycle.Night => nightColorCloud,
|
DayNightCycle.Night => nightColorCloud,
|
||||||
_ => throw new System.NotImplementedException()
|
_ => throw new System.NotImplementedException()
|
||||||
};
|
};
|
||||||
|
@ -759,7 +759,7 @@ namespace HeavenStudio.Games
|
||||||
public enum DayNightCycle
|
public enum DayNightCycle
|
||||||
{
|
{
|
||||||
Day = 0,
|
Day = 0,
|
||||||
Noon = 1,
|
Twilight = 1,
|
||||||
Night = 2
|
Night = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue