初始化
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class UIHomeMain : UIBase
|
||||
{
|
||||
public SubUIManager subUIManager;
|
||||
public UIPanelAddressConfig panelAddressConfig;
|
||||
public Transform SubPanelParent;
|
||||
|
||||
#region 中间
|
||||
public Button defaultButton;
|
||||
[Header("风雷之渊")]
|
||||
public Button FLZYButton;
|
||||
[Header("星际迷航")]
|
||||
public Button XJMHButton;
|
||||
[Header("太古仙墟")]
|
||||
public Button TGXXButton;
|
||||
[Header("黑化悟空")]
|
||||
public Button HHWKButton;
|
||||
[Header("中国象棋")]
|
||||
public Button ZGXQButton;
|
||||
[Header("敬请期待")]
|
||||
public Button JQQDButton;
|
||||
#endregion
|
||||
|
||||
[Header("两侧按钮")]
|
||||
[Header("Left")]
|
||||
|
||||
#region left
|
||||
public Button btn_VIP;
|
||||
public Button btn_JJJ;
|
||||
public Button btn_Activity;
|
||||
#endregion
|
||||
[Header("Right")]
|
||||
#region Right
|
||||
public Button btn_Turret;
|
||||
public Button btn_ZS;
|
||||
public Button btn_Seting;
|
||||
#endregion
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
subUIManager = new SubUIManager(SubPanelParent, panelAddressConfig);
|
||||
btn_VIP.onClick.AddListener(OnVIP);
|
||||
}
|
||||
private void OnVIP()
|
||||
{
|
||||
subUIManager.ShowAsync(UIPanel.VIPPenel);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user