主界面UI修改

This commit is contained in:
YiHan0621
2025-08-18 17:40:47 +08:00
parent b22177be11
commit f93c384e3e
57 changed files with 6959 additions and 117 deletions

View File

@@ -15,7 +15,7 @@ namespace TcgEngine.FX
void Start()
{
}
void Update()

View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TcgEngine.UI
{
public class Cards : UIPanel
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 446c25b1fcbf5cf4a9de5f31c0bcadec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -39,17 +39,21 @@ namespace TcgEngine.UI
button.onClick.AddListener(OnClick);
if (active && ui_panel != null)
{
ui_panel.Show();
}
}
void Update()
{
if (highlight != null)
highlight.SetActive(active);
// if (highlight != null)
// highlight.SetActive(active);
}
private void OnClick()
{
Debug.Log("点击了Tab: " + gameObject.name);
Activate();
onClick?.Invoke();
onClickAny?.Invoke(this);