Make it so you must be Level 3 or higher to access icon marketplace
This commit is contained in:
@@ -15,6 +15,8 @@ public class MenuScript : MonoBehaviour
|
||||
[SerializeField] private GameObject closePopup;
|
||||
[SerializeField] private Button closePopupCancelButton;
|
||||
[SerializeField] private Button closePopupCloseButton;
|
||||
[SerializeField] private Button iconMarketplaceButton;
|
||||
[SerializeField] private TMP_Text iconMarketplaceButtonText;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
@@ -56,6 +58,12 @@ public class MenuScript : MonoBehaviour
|
||||
});
|
||||
profileButton.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
if (Tools.GetLevelInfo().level < 3)
|
||||
{
|
||||
iconMarketplaceButton.interactable = false;
|
||||
iconMarketplaceButtonText.text += "\n<size=12>You need level 3 or higher to access this</size>";
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
||||
Reference in New Issue
Block a user