Add back Discord RPC

This commit is contained in:
2026-01-31 22:19:38 -07:00
parent e8bac521f7
commit d928fff45e
18 changed files with 809 additions and 309 deletions

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()