Make custom mode level 5 or higher
This commit is contained in:
@@ -213,6 +213,12 @@ public class PlayMenu : MonoBehaviour
|
||||
{
|
||||
if (DiscordRPCHandler.Instance != null)
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user