首页牌组初始化
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();
|
||||
|
||||
Reference in New Issue
Block a user