首页牌组初始化
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TcgEngine.Client;
|
||||
using TcgEngine.Gameplay;
|
||||
using Unity.VisualScripting;
|
||||
|
||||
namespace TcgEngine.UI
|
||||
@@ -42,6 +43,7 @@ namespace TcgEngine.UI
|
||||
//Set default settings
|
||||
Application.targetFrameRate = 120;
|
||||
GameClient.game_settings = GameSettings.Default;
|
||||
Debug.Log("WOWO_Awake");
|
||||
}
|
||||
|
||||
private void Start()
|
||||
@@ -62,6 +64,7 @@ namespace TcgEngine.UI
|
||||
AfterLogin();
|
||||
else
|
||||
RefreshLogin();
|
||||
// TaskManager.Instance.SavePlayerData();
|
||||
}
|
||||
|
||||
void Update()
|
||||
@@ -267,6 +270,17 @@ namespace TcgEngine.UI
|
||||
StartMathmaking(GameMode.Ranked, "");
|
||||
}
|
||||
|
||||
public void OnUiFrameShow(UIPanel panel)
|
||||
{
|
||||
if (!Authenticator.Get().IsConnected())
|
||||
{
|
||||
FadeToScene("LoginMenu");
|
||||
return;
|
||||
}
|
||||
|
||||
panel.Show();
|
||||
}
|
||||
|
||||
public void OnClickAdventure()
|
||||
{
|
||||
AdventurePanel.Get().Show();
|
||||
|
||||
@@ -6,8 +6,8 @@ using UnityEngine.UI;
|
||||
namespace TcgEngine.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Selection of your starter deck
|
||||
/// Will only appear in the main menu when in API mode with a new account
|
||||
/// 初始套牌选择
|
||||
/// 仅当处于 API 模式且使用新账号时,才会在主菜单中显示
|
||||
/// </summary>
|
||||
|
||||
public class StarterDeckPanel : UIPanel
|
||||
|
||||
Reference in New Issue
Block a user