1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2025-02-20 20:31:00 +01:00

fix led power bug

This commit is contained in:
xpeng 2022-02-21 01:13:28 +01:00
parent 09d372437b
commit 144e46f327

View File

@ -32,7 +32,7 @@ public class LedSerial : MonoBehaviour
{
for (int i = 0; i < 8; i++)
{
Lights[i].intensity = LightIntensity / (Lights[i].color.r + Lights[i].color.g + Lights[i].color.b) +0.1f;
Lights[i].intensity = (LightIntensity / (Lights[i].color.r + Lights[i].color.g + Lights[i].color.b)) +0.1f;
yield return null;
}
}