Make custom mode level 5 or higher

This commit is contained in:
Lncvrt committed 2026-02-11 17:50:23 -07:00
1 parent f1f6d0b80d
commit d855773d61
1 file changed
+6
+6
View File
@@ -213,6 +213,12 @@ public class PlayMenu : MonoBehaviour
{ {
if (DiscordRPCHandler.Instance != null) if (DiscordRPCHandler.Instance != null)
DiscordRPCHandler.Instance.UpdateRPC("Picking what mode they want to play", ""); DiscordRPCHandler.Instance.UpdateRPC("Picking what mode they want to play", "");
if (Tools.GetLevelInfo().level < 5)
{
customButton.interactable = false;
customButton.transform.GetChild(0).GetComponent<TMP_Text>().text += "\n<size=12>You need level 5 or higher to access this</size>";
}
} }
void ValidateTotal() void ValidateTotal()