Skip to content

Commit 07f8af2

Browse files
committed
Update MRTKLifecycleManager.cs
1 parent 678749e commit 07f8af2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

org.mixedrealitytoolkit.core/Subsystems/MRTKLifecycleManager.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,13 @@ protected void OnApplicationFocus(bool focus)
191191
// and applications should react to an inactive input action by skipping rendering of that action's input avatar
192192
// (depictions of hands or other tracked objects controlled by the user)."
193193

194-
if (focus)
194+
foreach (InputActionReference reference in inputActionReferences)
195195
{
196-
foreach (InputActionReference reference in inputActionReferences)
196+
if (focus)
197197
{
198198
reference.action.Enable();
199199
}
200-
}
201-
else
202-
{
203-
foreach (InputActionReference reference in inputActionReferences)
200+
else
204201
{
205202
reference.action.Disable();
206203
}

0 commit comments

Comments
 (0)