Make it so you must be Level 3 or higher to access icon marketplace
This commit is contained in:
@@ -2348,6 +2348,8 @@ MonoBehaviour:
|
|||||||
closePopup: {fileID: 60514371}
|
closePopup: {fileID: 60514371}
|
||||||
closePopupCancelButton: {fileID: 1983964294}
|
closePopupCancelButton: {fileID: 1983964294}
|
||||||
closePopupCloseButton: {fileID: 92870888}
|
closePopupCloseButton: {fileID: 92870888}
|
||||||
|
iconMarketplaceButton: {fileID: 62990862}
|
||||||
|
iconMarketplaceButtonText: {fileID: 2073047665}
|
||||||
--- !u!1 &673338277
|
--- !u!1 &673338277
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ public class MenuScript : MonoBehaviour
|
|||||||
[SerializeField] private GameObject closePopup;
|
[SerializeField] private GameObject closePopup;
|
||||||
[SerializeField] private Button closePopupCancelButton;
|
[SerializeField] private Button closePopupCancelButton;
|
||||||
[SerializeField] private Button closePopupCloseButton;
|
[SerializeField] private Button closePopupCloseButton;
|
||||||
|
[SerializeField] private Button iconMarketplaceButton;
|
||||||
|
[SerializeField] private TMP_Text iconMarketplaceButtonText;
|
||||||
|
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
@@ -56,6 +58,12 @@ public class MenuScript : MonoBehaviour
|
|||||||
});
|
});
|
||||||
profileButton.gameObject.SetActive(true);
|
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()
|
void Update()
|
||||||
|
|||||||
Reference in New Issue
Block a user