Skip to content

Commit e13fe53

Browse files
jsm174freezy
authored andcommitted
misc: remove internal id.
1 parent 1fa0420 commit e13fe53

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Runtime/Nodes/Lamps/SetLampUnit.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ private ControlOutput Process(Flow flow)
103103
var lampId = flow.GetValue<string>(input);
104104
switch (DataType) {
105105
case LampDataType.OnOff:
106-
Player.SetLamp(lampId, 0, flow.GetValue<bool>(Value) ? LampStatus.On : LampStatus.Off);
106+
Player.SetLamp(lampId, flow.GetValue<bool>(Value) ? LampStatus.On : LampStatus.Off);
107107
break;
108108
case LampDataType.Status:
109-
Player.SetLamp(lampId, 0, flow.GetValue<LampStatus>(Value));
109+
Player.SetLamp(lampId, flow.GetValue<LampStatus>(Value));
110110
break;
111111
case LampDataType.Intensity:
112-
Player.SetLamp(lampId, 0, flow.GetValue<float>(Value) * GetIntensityMultiplier(lampId));
112+
Player.SetLamp(lampId, flow.GetValue<float>(Value) * GetIntensityMultiplier(lampId));
113113
break;
114114
case LampDataType.Color:
115-
Player.SetLamp(lampId, 0, flow.GetValue<UnityEngine.Color>(Value).ToEngineColor());
115+
Player.SetLamp(lampId, flow.GetValue<UnityEngine.Color>(Value).ToEngineColor());
116116
break;
117117
default:
118118
throw new ArgumentOutOfRangeException();

Runtime/Nodes/Lamps/SwitchLampUnit.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ private ControlOutput Process(Flow flow)
139139

140140
switch (dataType) {
141141
case LampDataType.OnOff:
142-
Player.SetLamp(lampIdValue.id, 0, flow.GetValue<bool>(value) ? LampStatus.On : LampStatus.Off);
142+
Player.SetLamp(lampIdValue.id, flow.GetValue<bool>(value) ? LampStatus.On : LampStatus.Off);
143143
break;
144144
case LampDataType.Status:
145-
Player.SetLamp(lampIdValue.id, 0, flow.GetValue<LampStatus>(value));
145+
Player.SetLamp(lampIdValue.id, flow.GetValue<LampStatus>(value));
146146
break;
147147
case LampDataType.Intensity:
148-
Player.SetLamp(lampIdValue.id, 0, flow.GetValue<float>(value) * GetIntensityMultiplier(lampIdValue.id));
148+
Player.SetLamp(lampIdValue.id, flow.GetValue<float>(value) * GetIntensityMultiplier(lampIdValue.id));
149149
break;
150150
case LampDataType.Color:
151-
Player.SetLamp(lampIdValue.id, 0, flow.GetValue<UnityEngine.Color>(value).ToEngineColor());
151+
Player.SetLamp(lampIdValue.id, flow.GetValue<UnityEngine.Color>(value).ToEngineColor());
152152
break;
153153
default:
154154
throw new ArgumentOutOfRangeException();

0 commit comments

Comments
 (0)