主界面UI修改
This commit is contained in:
@@ -15,7 +15,7 @@ namespace TcgEngine.FX
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
|
||||
21
Assets/TcgEngine/Scripts/Menu/Cards.cs
Normal file
21
Assets/TcgEngine/Scripts/Menu/Cards.cs
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/TcgEngine/Scripts/Menu/Cards.cs.meta
Normal file
11
Assets/TcgEngine/Scripts/Menu/Cards.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 446c25b1fcbf5cf4a9de5f31c0bcadec
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user