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

@@ -663,6 +663,7 @@ public class CustomGamePlayer : MonoBehaviour
score += scoreAddAmount;
scoreText.text = $"Score: {Tools.FormatWithCommas(score)}";
if (Application.isMobilePlatform) restartButton.interactable = score != 0;
if (DiscordRPCHandler.Instance != null) DiscordRPCHandler.Instance.UpdateRPC("Playing in custom mode", "Score: " + Tools.FormatWithCommas(score));
}
void CheckIfGrounded()