2023-09-04 16:57:46 +08:00
|
|
|
//菜单栏
|
2024-03-12 02:21:41 +08:00
|
|
|
|
2023-09-04 16:57:46 +08:00
|
|
|
using UnityEditor;
|
|
|
|
|
using UnityEngine;
|
2024-03-12 02:21:41 +08:00
|
|
|
|
2023-09-04 16:57:46 +08:00
|
|
|
// using DownloadManager;
|
|
|
|
|
|
|
|
|
|
namespace AnyThink.Scripts.IntegrationManager.Editor
|
|
|
|
|
{
|
|
|
|
|
public class AnyThinkMenuItems : MonoBehaviour
|
|
|
|
|
{
|
2024-03-12 02:21:41 +08:00
|
|
|
#if AnyThinkSDKEditor
|
2023-09-04 16:57:46 +08:00
|
|
|
/**
|
2024-03-12 02:17:14 +08:00
|
|
|
* The special characters at the end represent a shortcut for this action.
|
2024-03-12 02:21:41 +08:00
|
|
|
*
|
2024-03-12 02:17:14 +08:00
|
|
|
* % - ctrl on Windows, cmd on macOS
|
|
|
|
|
* # - shift
|
|
|
|
|
* & - alt
|
2024-03-12 02:21:41 +08:00
|
|
|
*
|
2024-03-12 02:17:14 +08:00
|
|
|
* So, (shift + cmd/ctrl + t) will launch the integration manager
|
|
|
|
|
*/
|
2024-03-12 02:21:41 +08:00
|
|
|
[MenuItem ("AnyThink/SDK Manager %#t")]
|
|
|
|
|
private static void IntegrationManager ()
|
2023-09-04 16:57:46 +08:00
|
|
|
{
|
2024-03-12 02:21:41 +08:00
|
|
|
ATIntegrationManagerWindow.ShowManager ();
|
2023-09-04 16:57:46 +08:00
|
|
|
}
|
|
|
|
|
|
2024-03-12 02:21:41 +08:00
|
|
|
[MenuItem ("AnyThink/Documentation")]
|
|
|
|
|
public static void Documentation ()
|
2023-09-04 16:57:46 +08:00
|
|
|
{
|
2024-03-07 15:23:32 +08:00
|
|
|
// if (ATConfig.isSelectedChina()) {
|
|
|
|
|
// Application.OpenURL("https://newdocs.toponad.com/docs/lgfbO4");
|
|
|
|
|
// } else {
|
|
|
|
|
// Application.OpenURL("https://docs.toponad.com/#/en-us/unity/unity_doc/unity_access_doc_new?id=_3-integration");
|
|
|
|
|
// }
|
2024-03-12 02:21:41 +08:00
|
|
|
Application.OpenURL ("https://newdocs.toponad.com/docs/lgfbO4");
|
2023-09-04 16:57:46 +08:00
|
|
|
}
|
2024-03-12 02:21:41 +08:00
|
|
|
#endif
|
2024-03-07 15:23:32 +08:00
|
|
|
}
|
2023-09-04 16:57:46 +08:00
|
|
|
}
|