You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
627 B
C#
19 lines
627 B
C#
1 month ago
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace WalletConnectUnity.UI
|
||
|
{
|
||
|
[Serializable]
|
||
|
public class WCTabPage : MonoBehaviour
|
||
|
{
|
||
|
[field: SerializeField] public string MobileTabButtonLabel { get; private set; }
|
||
|
[field: SerializeField] public string DesktopTabButtonLabel { get; private set; }
|
||
|
[field: SerializeField] public RectTransform PageTransform { get; private set; }
|
||
|
|
||
|
public virtual float GetPageHeight() => PageTransform.sizeDelta.y;
|
||
|
|
||
|
public virtual void Enable() => gameObject.SetActive(true);
|
||
|
|
||
|
public virtual void Disable() => gameObject.SetActive(false);
|
||
|
}
|
||
|
}
|