UI修改
This commit is contained in:
@@ -25,17 +25,17 @@ namespace TcgEngine.Client
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Debug.LogError("------------"+gameObject.name+"-------------------");
|
||||
|
||||
// 在游戏客户端启动时初始化任务系统
|
||||
client = FindFirstObjectByType<GameClient>();
|
||||
client = GameClient.Get();
|
||||
Debug.LogError(client.name);
|
||||
if (client != null)
|
||||
{
|
||||
// 玩家连接到游戏服务器时触发任务检查
|
||||
client.onConnectServer += OnConnectToServer;
|
||||
Debug.LogError(client.onConnectServer + "任务系统初始化成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"---{client}为空----");
|
||||
}
|
||||
|
||||
if (TaskManager.Instance != null)
|
||||
@@ -61,7 +61,6 @@ namespace TcgEngine.Client
|
||||
TaskManager taskManager = TaskManager.Instance;
|
||||
if (taskManager != null)
|
||||
{
|
||||
Debug.LogError("初始化完成");
|
||||
taskManager.OnPlayerLogin();
|
||||
taskPanel.ShowTasks(taskManager.GetAllTasks());
|
||||
}
|
||||
|
||||
@@ -311,6 +311,13 @@ namespace TcgEngine.UI
|
||||
base.Show(instant);
|
||||
RefreshPanel();
|
||||
RefreshLadderPanel();
|
||||
ladderRank.Show();
|
||||
}
|
||||
|
||||
public override void Hide(bool instant = false)
|
||||
{
|
||||
base.Hide(instant);
|
||||
ladderRank.Hide();
|
||||
}
|
||||
|
||||
public void OnClickBack()
|
||||
|
||||
8
Assets/TcgEngine/Scripts/Tasks.meta
Normal file
8
Assets/TcgEngine/Scripts/Tasks.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6e8eb6b8579fc34aa875558de2c35c1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user