68 lines
1.5 KiB
C#
68 lines
1.5 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.UIElements;
|
|
using Button = UnityEngine.UI.Button;
|
|
using Image = UnityEngine.UI.Image;
|
|
using Toggle = UnityEngine.UI.Toggle;
|
|
using ScrollView = PhxhSDK.PhxhScrollView;
|
|
using Framework;
|
|
|
|
public class UI_CampController : UIWindow
|
|
{
|
|
//UI GameObj
|
|
///Auto Gen Start///
|
|
public Button Button_Back;
|
|
|
|
public Button Button_back;
|
|
public TMP_Text Text_Back;
|
|
public Button Button_Home;
|
|
/// <summary>
|
|
/// 技能树按钮
|
|
/// </summary>
|
|
private Button buttonSkill;
|
|
|
|
///Auto Gen End///
|
|
|
|
public override void OnInit()
|
|
{
|
|
//bind UI GameObj
|
|
UI_CampBinder.GetComponents(this);
|
|
|
|
buttonSkill = GetComponent<Button>("Button_Skill");
|
|
|
|
BindButton(Button_back, OnClickBack);
|
|
BindButton(Button_Home, OnClickBack);
|
|
BindButton(buttonSkill, OnSkill);
|
|
}
|
|
|
|
private void OnClickBack()
|
|
{
|
|
CampManager.Instance.ExitCamp();
|
|
}
|
|
|
|
//invoke when open window
|
|
protected override void OnShowWindow(object data = null)
|
|
{
|
|
}
|
|
|
|
//invoke when reload window
|
|
protected override void OnReloadWindow(object data = null)
|
|
{
|
|
}
|
|
|
|
//invoke when close window
|
|
protected override void OnHideWindow()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 技能养成
|
|
/// </summary>
|
|
private async void OnSkill()
|
|
{
|
|
await UI_CommandSkillCultivateController.Open();
|
|
}
|
|
} |