24 lines
454 B
C#
24 lines
454 B
C#
#pragma warning disable 0649
|
|
|
|
using UnityEngine;
|
|
|
|
namespace Watermelon
|
|
{
|
|
public class SettingsLinkButton : SettingsButtonBase
|
|
{
|
|
[SerializeField] string url;
|
|
|
|
public override void Init()
|
|
{
|
|
|
|
}
|
|
|
|
public override void OnClick()
|
|
{
|
|
Application.OpenURL(url);
|
|
|
|
// Play button sound
|
|
AudioController.PlaySound(AudioController.GetClip("button_sound"));
|
|
}
|
|
}
|
|
} |