Add back Discord RPC

This commit is contained in:
Lncvrt committed 2026-01-31 22:19:42 -07:00
1 parent e8bac521f7
commit d928fff45e
18 files changed
+809 -309

No files matched your search

+2
View File
@@ -672,6 +672,8 @@ 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()