56 lines
1.2 KiB
C#
56 lines
1.2 KiB
C#
using System;
|
|
using Cute;
|
|
using UnityEngine;
|
|
using Wizard.Dialog.Setting;
|
|
|
|
namespace Wizard;
|
|
|
|
public class AccountBase : MonoBehaviour
|
|
{
|
|
public enum DisplayType
|
|
{
|
|
NONE}
|
|
|
|
public enum TransitionOriginalScreen
|
|
{
|
|
}
|
|
|
|
[SerializeField]
|
|
private UIButton _appleButton;
|
|
|
|
[SerializeField]
|
|
private UIGrid ButtonGrid;
|
|
|
|
[SerializeField]
|
|
public NguiObjs BtnTransferCode;
|
|
|
|
[SerializeField]
|
|
public NguiObjs BtnGoogle;
|
|
|
|
[SerializeField]
|
|
public NguiObjs ButtonGetCode;
|
|
|
|
[SerializeField]
|
|
public UILabel CommonLabelTop;
|
|
|
|
[SerializeField]
|
|
public UILabel CommonLabelBtm;
|
|
|
|
private void Awake()
|
|
{
|
|
SetLabels();
|
|
BtnGoogle.gameObject.SetActive(value: false);
|
|
_appleButton.gameObject.SetActive(value: false);
|
|
ButtonGrid.repositionNow = true;
|
|
}
|
|
|
|
private void SetLabels()
|
|
{
|
|
SystemText systemText = Data.SystemText;
|
|
BtnTransferCode.labels[0].text = systemText.Get("Account_0094");
|
|
ButtonGetCode.labels[0].text = (GameStartCheckTask.IsSetTransitionPassword ? systemText.Get("Account_0100") : systemText.Get("Account_0099"));
|
|
CommonLabelTop.text = systemText.Get("Account_0095");
|
|
CommonLabelBtm.text = systemText.Get("Account_0073");
|
|
}
|
|
}
|