Use a universally supported library for file picking
This commit is contained in:
@@ -18,11 +18,6 @@ public class IconMarketplaceManager : MonoBehaviour
|
||||
void Start()
|
||||
{
|
||||
downloadButton.onClick.AddListener(() => SwitchPanel(1));
|
||||
#if !UNITY_STANDALONE_OSX && !UNITY_STANDALONE_WIN && !UNITY_STANDALONE_LINUX && !UNITY_EDITOR
|
||||
uploadButton.interactable = false;
|
||||
uploadButton.transform.GetChild(0).transform.localPosition = new Vector3(0, 10, 0);
|
||||
uploadButton.transform.GetChild(1).GetComponent<TMP_Text>().text = "Unsupported platform";
|
||||
#else
|
||||
if (BazookaManager.Instance.GetAccountID() != null && BazookaManager.Instance.GetAccountName() != null && BazookaManager.Instance.GetAccountSession() != null)
|
||||
{
|
||||
uploadButton.onClick.AddListener(() => SwitchPanel(2));
|
||||
@@ -33,7 +28,6 @@ public class IconMarketplaceManager : MonoBehaviour
|
||||
uploadButton.transform.GetChild(0).transform.localPosition = new Vector3(0, 10, 0);
|
||||
uploadButton.transform.GetChild(1).GetComponent<TMP_Text>().text = "Not logged in to an account";
|
||||
}
|
||||
#endif
|
||||
SwitchPanel(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user