Skip to content

Commit aa294a3

Browse files
authored
Update AryzonCardboardSubsystemLoader.cs
1 parent ea00a31 commit aa294a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Runtime/Scripts/AryzonCardboardSubsystemLoader.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,17 @@ public static void UpdateCardboard()
9393
{
9494
return;
9595
}
96-
//if (XRLoader.renderWidgets)
97-
//{
96+
9897
if (Api.IsGearButtonPressed)
9998
{
10099
Api.ScanDeviceParams();
101100
}
102101

103102
if (Api.IsCloseButtonPressed)
104103
{
105-
Application.Quit();
104+
AryzonSettings.Instance.aryzonManager.StopAryzonMode();
106105
}
107-
//}
106+
108107
if (Api.HasNewDeviceParams())
109108
{
110109
Api.ReloadDeviceParams();
@@ -133,4 +132,4 @@ private static void ConnectCardboardInputSystem()
133132
}
134133
}
135134
}
136-
}
135+
}

0 commit comments

Comments
 (0)