using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
using UnityEngine.EventSystems;
|
|
using System;
|
using System.Text;
|
using System.Text.RegularExpressions;
|
|
namespace Snxxz.UI
|
{
|
public class RolePanel : OneLevelWin
|
{
|
protected override void AddListeners()
|
{
|
base.AddListeners();
|
SetFunctionListener(0, OnFuncRole);
|
SetFunctionListener(1, ReikiRoot);
|
SetFunctionListener(2, OpenFashionDress);
|
SetFunctionListener(3, OnFuncMagician);
|
SetFunctionListener(4, GatherSoul);
|
}
|
|
protected override void OnActived()
|
{
|
base.OnActived();
|
}
|
|
protected override void OnPreClose()
|
{
|
CloseSubWindows();
|
}
|
|
private void ReikiRoot()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<ReikiRootWin>();
|
functionOrder = 1;
|
}
|
|
private void GatherSoul()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<GatherSoulWin>();
|
functionOrder = 4;
|
}
|
|
private void OpenFashionDress()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<FashionDressWin>();
|
functionOrder = 2;
|
}
|
|
private void OnFuncMagician()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<MagicianWin>();
|
functionOrder = 3;
|
}
|
|
private void OnFuncRole()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<RoleInfomationWin>();
|
functionOrder = 0;
|
}
|
}
|
}
|
|
|