排行榜按钮UI提交、任务刷新失败修复、卡牌碎片与钻石接口。
This commit is contained in:
@@ -69,6 +69,8 @@ namespace TcgEngine.UI
|
||||
|
||||
private List<UserCardData> deck_cards = new List<UserCardData>();
|
||||
|
||||
[SerializeField] private Text cardFragmentsText;
|
||||
|
||||
private static CollectionPanel instance;
|
||||
|
||||
protected override void Awake()
|
||||
@@ -115,7 +117,11 @@ namespace TcgEngine.UI
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (ApiClient.Get() != null)
|
||||
{
|
||||
UserData udata = ApiClient.Get().UserData;
|
||||
cardFragmentsText.text = udata.cardfragments.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace TcgEngine.UI
|
||||
[Header("Player UI")]
|
||||
public Text username_txt;
|
||||
public Text credits_txt;
|
||||
public Text crystalText;
|
||||
public AvatarUI avatar;
|
||||
public GameObject loader;
|
||||
|
||||
@@ -43,7 +44,6 @@ namespace TcgEngine.UI
|
||||
//Set default settings
|
||||
Application.targetFrameRate = 120;
|
||||
GameClient.game_settings = GameSettings.Default;
|
||||
Debug.Log("WOWO_Awake");
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -64,7 +64,6 @@ namespace TcgEngine.UI
|
||||
AfterLogin();
|
||||
else
|
||||
RefreshLogin();
|
||||
// TaskManager.Instance.SavePlayerData();
|
||||
}
|
||||
|
||||
void Update()
|
||||
@@ -73,6 +72,7 @@ namespace TcgEngine.UI
|
||||
if (udata != null)
|
||||
{
|
||||
credits_txt.text = GameUI.FormatNumber(udata.coins);
|
||||
crystalText.text = GameUI.FormatNumber(udata.crystal);
|
||||
}
|
||||
|
||||
bool matchmaking = GameClientMatchmaker.Get().IsMatchmaking();
|
||||
|
||||
Reference in New Issue
Block a user