diff --git a/Assets/Scenes/CustomGamePlayer.unity b/Assets/Scenes/CustomGamePlayer.unity index 123babd..5195ddd 100644 --- a/Assets/Scenes/CustomGamePlayer.unity +++ b/Assets/Scenes/CustomGamePlayer.unity @@ -1338,7 +1338,6 @@ MonoBehaviour: sfxSlider: {fileID: 604620478} musicSliderText: {fileID: 1859415099} sfxSliderText: {fileID: 699129040} - fpsText: {fileID: 0} scoreText: {fileID: 432923591} boostText: {fileID: 497996347} pauseButton: {fileID: 1577031227} diff --git a/Assets/Scenes/GamePlayer.unity b/Assets/Scenes/GamePlayer.unity index 4c58f32..4b933f1 100644 --- a/Assets/Scenes/GamePlayer.unity +++ b/Assets/Scenes/GamePlayer.unity @@ -1355,7 +1355,6 @@ MonoBehaviour: sfxSlider: {fileID: 604620478} musicSliderText: {fileID: 1859415099} sfxSliderText: {fileID: 699129040} - fpsText: {fileID: 0} scoreText: {fileID: 432923591} highScoreText: {fileID: 1606868532} boostText: {fileID: 497996347} diff --git a/Assets/Scripts/CustomGamePlayerPauseMenu.cs b/Assets/Scripts/CustomGamePlayerPauseMenu.cs index 3a78ae0..6c26083 100644 --- a/Assets/Scripts/CustomGamePlayerPauseMenu.cs +++ b/Assets/Scripts/CustomGamePlayerPauseMenu.cs @@ -14,7 +14,6 @@ public class CustomGamePlayerPauseMenu : MonoBehaviour public Slider sfxSlider; public TMP_Text musicSliderText; public TMP_Text sfxSliderText; - public TMP_Text fpsText; public TMP_Text scoreText; public TMP_Text boostText; public Button pauseButton; @@ -45,10 +44,8 @@ public class CustomGamePlayerPauseMenu : MonoBehaviour }); resetUiButton.onClick.AddListener(() => { - ((RectTransform)fpsText.transform).anchoredPosition = new Vector2(210f, -35f); ((RectTransform)scoreText.transform).anchoredPosition = new Vector2(0f, -70f); ((RectTransform)boostText.transform).anchoredPosition = new Vector2(0f, -190f); - PlayerPrefs.DeleteKey("DraggedUIFPSText"); PlayerPrefs.DeleteKey("DraggedUIScoreText"); PlayerPrefs.DeleteKey("DraggedUIBoostTextCustom"); if (Application.isMobilePlatform) @@ -78,7 +75,6 @@ public class CustomGamePlayerPauseMenu : MonoBehaviour continueButton.gameObject.SetActive(!continueButton.gameObject.activeSelf); editUiButton.transform.GetChild(0).GetComponent().text = editUiButton.transform.GetChild(0).GetComponent().text == "Edit UI" ? "Done" : "Edit UI"; resetUiButton.gameObject.SetActive(!resetUiButton.gameObject.activeSelf); - fpsText.GetComponent().canDrag = !fpsText.GetComponent().canDrag; scoreText.GetComponent().canDrag = !scoreText.GetComponent().canDrag; boostText.GetComponent().canDrag = !boostText.GetComponent().canDrag; if (Application.isMobilePlatform) diff --git a/Assets/Scripts/GamePlayerPauseMenu.cs b/Assets/Scripts/GamePlayerPauseMenu.cs index 4aad019..c6815e1 100644 --- a/Assets/Scripts/GamePlayerPauseMenu.cs +++ b/Assets/Scripts/GamePlayerPauseMenu.cs @@ -14,7 +14,6 @@ public class GamePlayerPauseMenu : MonoBehaviour public Slider sfxSlider; public TMP_Text musicSliderText; public TMP_Text sfxSliderText; - public TMP_Text fpsText; public TMP_Text scoreText; public TMP_Text highScoreText; public TMP_Text boostText; @@ -47,12 +46,10 @@ public class GamePlayerPauseMenu : MonoBehaviour }); resetUiButton.onClick.AddListener(() => { - ((RectTransform)fpsText.transform).anchoredPosition = new Vector2(210f, -35f); ((RectTransform)scoreText.transform).anchoredPosition = new Vector2(0f, -70f); ((RectTransform)highScoreText.transform).anchoredPosition = new Vector2(0f, -140f); ((RectTransform)boostText.transform).anchoredPosition = new Vector2(0f, -190f); ((RectTransform)coinsText.transform).anchoredPosition = new Vector2(260f, 47.5f); - PlayerPrefs.DeleteKey("DraggedUIFPSText"); PlayerPrefs.DeleteKey("DraggedUIScoreText"); PlayerPrefs.DeleteKey("DraggedUIHighScoreText"); PlayerPrefs.DeleteKey("DraggedUIBoostText"); @@ -84,7 +81,6 @@ public class GamePlayerPauseMenu : MonoBehaviour continueButton.gameObject.SetActive(!continueButton.gameObject.activeSelf); editUiButton.transform.GetChild(0).GetComponent().text = editUiButton.transform.GetChild(0).GetComponent().text == "Edit UI" ? "Done" : "Edit UI"; resetUiButton.gameObject.SetActive(!resetUiButton.gameObject.activeSelf); - fpsText.GetComponent().canDrag = !fpsText.GetComponent().canDrag; scoreText.GetComponent().canDrag = !scoreText.GetComponent().canDrag; highScoreText.GetComponent().canDrag = !highScoreText.GetComponent().canDrag; boostText.GetComponent().canDrag = !boostText.GetComponent().canDrag;