40 lines
796 B
C#
40 lines
796 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using Gameplay;
|
|
using Gameplay.Character;
|
|
using Gameplay.Guide;
|
|
using Gameplay.Level;
|
|
using Gameplay.Net;
|
|
using Gameplay.SubSystems;
|
|
using UnityEngine;
|
|
|
|
public partial class SROptions
|
|
{
|
|
/// <summary>
|
|
/// 跳转URL
|
|
/// </summary>
|
|
private string url = string.Empty;
|
|
|
|
[Category("跳转商店或网页测试"), DisplayName("URL")]
|
|
public string URL
|
|
{
|
|
get { return url; }
|
|
set { url = value; }
|
|
}
|
|
|
|
[Category("跳转商店或网页测试"), DisplayName("跳转")]
|
|
public void JumpURL()
|
|
{
|
|
try
|
|
{
|
|
Application.OpenURL(url);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Debug.LogError($"跳转失败:{e}");
|
|
}
|
|
}
|
|
}
|
|
|