Skip to content

Commit 5b58649

Browse files
committed
fix: Avoid set screen at awake
1 parent ecc3737 commit 5b58649

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

Assets/JCSUnity/Scripts/UI/Dropdown/JCS_DropdownScreenResolution.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ private void AddListener()
7070
{
7171
OnValueChanged_TMP(mDropdownTMP);
7272
});
73-
74-
// Run once.
75-
OnValueChanged_Legacy(mDropdownLegacy);
76-
OnValueChanged_TMP(mDropdownTMP);
7773
}
7874

7975
/// <summary>

Assets/JCSUnity/Scripts/UI/Dropdown/JCS_DropdownWindowedMode.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class JCS_DropdownWindowedMode : JCS_DropdownObject
2222
{
2323
/* Variables */
2424

25-
private List<string> mOptions = new ()
25+
private List<string> mOptions = new()
2626
{
2727
"Full Screen",
2828
"Windowed",
@@ -66,10 +66,6 @@ private void AddListener()
6666
{
6767
OnValueChanged_TMP(mDropdownTMP);
6868
});
69-
70-
// Run once.
71-
OnValueChanged_Legacy(DropdownLegacy);
72-
OnValueChanged_TMP(mDropdownTMP);
7369
}
7470

7571
/// <summary>

Assets/_Project/Scripts/Language/FT_MultiLangs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// 1. At least two buttons for different languages.
1717
/// 2. Assign callback and call language refresh.
1818
/// </summary>
19-
public class FT_MultiLangs : MonoBehaviour
19+
public class FT_MultiLangs : MonoBehaviour
2020
{
2121
/* Variables */
2222

0 commit comments

Comments
 (0)