What was I doing

This commit is contained in:
Lncvrt committed 2026-02-23 20:19:00 -07:00
1 parent 4cd12e9c13
commit 45d379ba33
3 files changed
+22 -22

No files matched your search

@@ -44,17 +44,17 @@ public class AutoGamePlayerPauseMenu : MonoBehaviour {
ToggleEditingUI(); ToggleEditingUI();
}); });
resetUiButton.onClick.AddListener(() => { resetUiButton.onClick.AddListener(() => {
((RectTransform)scoreText.transform).anchoredPosition = new Vector2(0f, -70f); scoreText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -70f);
((RectTransform)highScoreText.transform).anchoredPosition = new Vector2(0f, -140f); highScoreText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -140f);
((RectTransform)boostText.transform).anchoredPosition = new Vector2(0f, -190f); boostText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -190f);
((RectTransform)levelText.transform).anchoredPosition = new Vector2(-290f, 85f); levelText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-290f, 85f);
PlayerPrefs.DeleteKey("DraggedUIScoreText"); PlayerPrefs.DeleteKey("DraggedUIScoreText");
PlayerPrefs.DeleteKey("DraggedUIHighScoreText"); PlayerPrefs.DeleteKey("DraggedUIHighScoreText");
PlayerPrefs.DeleteKey("DraggedUIBoostText"); PlayerPrefs.DeleteKey("DraggedUIBoostText");
PlayerPrefs.DeleteKey("DraggedUICoinsText"); PlayerPrefs.DeleteKey("DraggedUICoinsText");
PlayerPrefs.DeleteKey("DraggedUILevelText"); PlayerPrefs.DeleteKey("DraggedUILevelText");
if (Application.isMobilePlatform) { if (Application.isMobilePlatform) {
((RectTransform)pauseButton.transform).anchoredPosition = new Vector2(128f, -128f); pauseButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(128f, -128f);
PlayerPrefs.DeleteKey("DraggedUIPauseButton"); PlayerPrefs.DeleteKey("DraggedUIPauseButton");
PlayerPrefs.DeleteKey("DraggedUIRestartButton"); PlayerPrefs.DeleteKey("DraggedUIRestartButton");
PlayerPrefs.DeleteKey("DraggedUIJumpButton"); PlayerPrefs.DeleteKey("DraggedUIJumpButton");
@@ -40,16 +40,16 @@ public class CustomGamePlayerPauseMenu : MonoBehaviour {
ToggleEditingUI(); ToggleEditingUI();
}); });
resetUiButton.onClick.AddListener(() => { resetUiButton.onClick.AddListener(() => {
((RectTransform)scoreText.transform).anchoredPosition = new Vector2(0f, -70f); scoreText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -70f);
((RectTransform)boostText.transform).anchoredPosition = new Vector2(0f, -140f); boostText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -140f);
PlayerPrefs.DeleteKey("DraggedUIScoreTextCustom"); PlayerPrefs.DeleteKey("DraggedUIScoreTextCustom");
PlayerPrefs.DeleteKey("DraggedUIBoostTextCustom"); PlayerPrefs.DeleteKey("DraggedUIBoostTextCustom");
if (Application.isMobilePlatform) { if (Application.isMobilePlatform) {
((RectTransform)pauseButton.transform).anchoredPosition = new Vector2(128f, -128f); pauseButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(128f, -128f);
((RectTransform)restartButton.transform).anchoredPosition = new Vector2(-128f, -128f); restartButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-128f, -128f);
((RectTransform)jumpButton.transform).anchoredPosition = new Vector2(-128f, 288f); jumpButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-128f, 288f);
((RectTransform)rightButton.transform).anchoredPosition = new Vector2(-128f, 128f); rightButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-128f, 128f);
((RectTransform)leftButton.transform).anchoredPosition = new Vector2(128f, 128f); leftButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(128f, 128f);
PlayerPrefs.DeleteKey("DraggedUIPauseButton"); PlayerPrefs.DeleteKey("DraggedUIPauseButton");
PlayerPrefs.DeleteKey("DraggedUIRestartButton"); PlayerPrefs.DeleteKey("DraggedUIRestartButton");
PlayerPrefs.DeleteKey("DraggedUIJumpButton"); PlayerPrefs.DeleteKey("DraggedUIJumpButton");
@@ -49,22 +49,22 @@ public class GamePlayerPauseMenu : MonoBehaviour {
ToggleEditingUI(); ToggleEditingUI();
}); });
resetUiButton.onClick.AddListener(() => { resetUiButton.onClick.AddListener(() => {
((RectTransform)scoreText.transform).anchoredPosition = new Vector2(0f, -70f); scoreText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -70f);
((RectTransform)highScoreText.transform).anchoredPosition = new Vector2(0f, -140f); highScoreText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -140f);
((RectTransform)boostText.transform).anchoredPosition = new Vector2(0f, -190f); boostText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(0f, -190f);
((RectTransform)coinsText.transform).anchoredPosition = new Vector2(260f, 47.5f); coinsText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(260f, 47.5f);
((RectTransform)levelText.transform).anchoredPosition = new Vector2(-290f, 85f); levelText.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-290f, 85f);
PlayerPrefs.DeleteKey("DraggedUIScoreText"); PlayerPrefs.DeleteKey("DraggedUIScoreText");
PlayerPrefs.DeleteKey("DraggedUIHighScoreText"); PlayerPrefs.DeleteKey("DraggedUIHighScoreText");
PlayerPrefs.DeleteKey("DraggedUIBoostText"); PlayerPrefs.DeleteKey("DraggedUIBoostText");
PlayerPrefs.DeleteKey("DraggedUICoinsText"); PlayerPrefs.DeleteKey("DraggedUICoinsText");
PlayerPrefs.DeleteKey("DraggedUILevelText"); PlayerPrefs.DeleteKey("DraggedUILevelText");
if (Application.isMobilePlatform) { if (Application.isMobilePlatform) {
((RectTransform)pauseButton.transform).anchoredPosition = new Vector2(128f, -128f); pauseButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(128f, -128f);
((RectTransform)restartButton.transform).anchoredPosition = new Vector2(-128f, -128f); restartButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-128f, -128f);
((RectTransform)jumpButton.transform).anchoredPosition = new Vector2(-128f, 288f); jumpButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-128f, 288f);
((RectTransform)rightButton.transform).anchoredPosition = new Vector2(-128f, 128f); rightButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(-128f, 128f);
((RectTransform)leftButton.transform).anchoredPosition = new Vector2(128f, 128f); leftButton.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(128f, 128f);
PlayerPrefs.DeleteKey("DraggedUIPauseButton"); PlayerPrefs.DeleteKey("DraggedUIPauseButton");
PlayerPrefs.DeleteKey("DraggedUIRestartButton"); PlayerPrefs.DeleteKey("DraggedUIRestartButton");
PlayerPrefs.DeleteKey("DraggedUIJumpButton"); PlayerPrefs.DeleteKey("DraggedUIJumpButton");