DTM Trail
This commit is contained in:
@@ -24,6 +24,14 @@ namespace Ichni.RhythmGame
|
||||
public bool baseColorDirtyMark;
|
||||
public bool emissionColorDirtyMark;
|
||||
|
||||
public Color GetCurrentEmissionColor()
|
||||
{
|
||||
float intensity = Mathf.Pow(2, currentEmissionIntensity);
|
||||
Color emissionColor = currentEmissionColor * intensity;
|
||||
emissionColor.a = 1;
|
||||
return emissionColor;
|
||||
}
|
||||
|
||||
public ColorSubmodule(GameElement attachedGameElement) : base(attachedGameElement)
|
||||
{
|
||||
this.originalBaseColor = Color.white;
|
||||
@@ -117,6 +125,7 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
currentBaseColor = originalBaseColor;
|
||||
currentEmissionColor = originalEmissionColor;
|
||||
currentEmissionIntensity = originalEmissionIntensity;
|
||||
baseColorDirtyMark = true;
|
||||
emissionColorDirtyMark = true;
|
||||
}
|
||||
@@ -125,7 +134,7 @@ namespace Ichni.RhythmGame
|
||||
public interface IHaveColorSubmodule
|
||||
{
|
||||
public ColorSubmodule colorSubmodule { get; set; }
|
||||
public bool haveEmission { get; }
|
||||
public bool haveEmission => false;
|
||||
|
||||
public void SetColorObserver()
|
||||
{
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace Ichni.RhythmGame
|
||||
public TimeDurationSubmodule(GameElement attachedGameElement) : base(attachedGameElement)
|
||||
{
|
||||
isOverridingDuration = false;
|
||||
startTime = -EditorManager.instance.songInformation.delay;//TODO: 换为-delay
|
||||
endTime = EditorManager.instance.songInformation.songTime;//TODO: 换为songLength
|
||||
startTime = -32767;//TODO: 换为-delay
|
||||
endTime = 32767;//TODO: 换为songLength
|
||||
|
||||
(attachedGameElement as IHaveTimeDurationSubmodule).timeDurationSubmodule = this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user