From e1aee5d946c4bf57b18b99fbfa8541d9d3a8e32d Mon Sep 17 00:00:00 2001 From: Mark Joshwel Date: Tue, 19 Nov 2024 01:36:19 +0800 Subject: [PATCH] game: gameplay loop works but inaccurate result calcs --- ColourMeOKGame/Assets/Scripts/AccountUI.cs | 62 +++- ColourMeOKGame/Assets/Scripts/Backend.cs | 268 +++++++++++------- ColourMeOKGame/Assets/Scripts/Colorimetry.cs | 17 +- ColourMeOKGame/Assets/Scripts/GameManager.cs | 100 ++++--- .../Assets/Scripts/LocalPlayerData.cs | 87 ++++-- ColourMeOKGame/Assets/Scripts/SideViewUI.cs | 4 +- ColourMeOKGame/Assets/UI/GameUI.uxml | 7 +- 7 files changed, 360 insertions(+), 185 deletions(-) diff --git a/ColourMeOKGame/Assets/Scripts/AccountUI.cs b/ColourMeOKGame/Assets/Scripts/AccountUI.cs index 98a9e85..1c68236 100644 --- a/ColourMeOKGame/Assets/Scripts/AccountUI.cs +++ b/ColourMeOKGame/Assets/Scripts/AccountUI.cs @@ -67,6 +67,12 @@ public class AccountUI : MonoBehaviour /// private Button _secondaryActionButton; + /// + /// either 'delete local data' or 'delete account' + /// (in order of 'initial', and 'post' states, is hidden in 'after' state) + /// + private Button _tertiaryActionButton; + /// /// username text field /// @@ -108,6 +114,9 @@ private void OnEnable() _secondaryActionButton = ui.Q