Bug fixes
This commit is contained in:
@@ -18,6 +18,8 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
public string spriteThemeBundleName;
|
||||
public string spriteName = "None";
|
||||
public SpriteRenderer spriteRenderer;
|
||||
public override bool haveEmissionColor => true;
|
||||
|
||||
#endregion
|
||||
|
||||
#region [生命周期与工厂] Lifecycle & Factory
|
||||
@@ -87,11 +89,13 @@ namespace Ichni.RhythmGame.ThemeBundles.Basic
|
||||
if (spriteRenderer != null)
|
||||
{
|
||||
spriteRenderer.color = colorSubmodule.currentBaseColor;
|
||||
if (colorSubmodule.emissionEnabled)
|
||||
{
|
||||
// 如果启用了发光,尝试设置发光颜色(需要对应的 Shader 支持)
|
||||
spriteRenderer.material.SetColor("_EmissionColor", colorSubmodule.GetCurrentEmissionColor());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#region [继承接口实现] Inherited Logic overrides
|
||||
// 如果有特定的子物体需要刷新逻辑,可在此重载
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user