Skip to content

Commit

Permalink
Fixed some small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Mar 16, 2023
1 parent 5608179 commit 5afcfe6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
8 changes: 4 additions & 4 deletions Assets/Prefabs/UI/DeviceButton.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RectTransform:
m_Children:
- {fileID: 4798376705778644204}
m_Father: {fileID: 4798376704848806611}
m_RootOrder: -1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down Expand Up @@ -91,7 +91,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
Expand Down Expand Up @@ -164,7 +164,7 @@ RectTransform:
m_Children:
- {fileID: 4798376704432026956}
m_Father: {fileID: 0}
m_RootOrder: -1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -202,7 +202,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4798376704432026956}
m_RootOrder: -1
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
Expand Down
10 changes: 5 additions & 5 deletions Assets/Scenes/MenuScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
Expand Down Expand Up @@ -9847,7 +9847,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
Expand Down Expand Up @@ -9981,7 +9981,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
Expand Down Expand Up @@ -15814,7 +15814,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
Expand Down Expand Up @@ -18324,7 +18324,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
Expand Down
1 change: 1 addition & 0 deletions Assets/Script/PlayMode/Play.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ private void Update() {
if (!GameManager.Instance.useAudioTime || !leaderAudioSource.isPlaying) {
realSongTime += Time.deltaTime * speed;
} else {
// TODO: Use "timeSamples" for better accuracy
realSongTime = leaderAudioSource.time;
}

Expand Down
15 changes: 0 additions & 15 deletions Assets/Script/UI/AddPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,6 @@ private void UpdateSelectDevice() {
UpdateConfigure();
});
}

// Add unsupported devices
foreach (var device in InputSystem.GetUnsupportedDevices()) {
var go = Instantiate(deviceButtonPrefab, devicesContainer);
go.GetComponentInChildren<TextMeshProUGUI>().text = $"<color=red>(NOT RECOGNIZED)</color> <b>{device.product}</b> ({device.interfaceName})";
go.GetComponentInChildren<Button>().onClick.AddListener(() => {
// Force register device as joystick
InputSystem.RegisterLayout<Joystick>(matches: new InputDeviceMatcher()
.WithInterface(device.interfaceName)
.WithProduct(device.product));

// Refresh
UpdateSelectDevice();
});
}
}

private void UpdateConfigure() {
Expand Down
3 changes: 2 additions & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ PlayerSettings:
16:9: 1
Others: 1
bundleVersion: 0.1.0
preloadedAssets: []
preloadedAssets:
- {fileID: 11400000, guid: 8efbce013f4e1c34895851b7038c76e9, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down

0 comments on commit 5afcfe6

Please sign in to comment.