Discord RPC

Settings menu does have a rpc but I have changes there and I don't want
to deal with that
This commit is contained in:
2025-09-28 15:29:06 -07:00
parent 6e6c0ad6e5
commit 02141e09ad
12 changed files with 680 additions and 294 deletions

View File

@@ -678,6 +678,7 @@ public class GamePlayer : MonoBehaviour
highScoreText.text = prefix + $"High Score: {Tools.FormatWithCommas(highscore) + suffix} \\u2022 Total Attempts: {Tools.FormatWithCommas(totalAttempts)}";
coinText.text = $"Coins: {Tools.FormatWithCommas(totalCoins)}";
if (Application.isMobilePlatform) restartButton.interactable = score != 0;
if (DiscordRPCHandler.Instance != null) DiscordRPCHandler.Instance.UpdateRPC("Playing in normal mode", $"Score: {Tools.FormatWithCommas(score)} | High Score: {Tools.FormatWithCommas(highscore)}");
}
void CheckIfGrounded()