//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, October 27, 2017 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class SettingUpWin : OneLevelWin { #region Built-in protected override void AddListeners() { base.AddListeners(); SetFunctionListener(0, OnClickHangUpTitle); SetFunctionListener(1, OnClickSystemTitle); SetFunctionListener(2, OnClickChatTitle); SetFunctionListener(3, OnClickPrivateTitle); SetFunctionListener(4, OnClickBugTitle); } #endregion private void OnClickHangUpTitle() { CloseSubWindows(); functionOrder = 0; WindowCenter.Instance.Open(); } private void OnClickSystemTitle() { CloseSubWindows(); functionOrder = 1; WindowCenter.Instance.Open(); } private void OnClickChatTitle() { CloseSubWindows(); functionOrder = 2; WindowCenter.Instance.Open(); } private void OnClickPrivateTitle() { CloseSubWindows(); functionOrder =3; WindowCenter.Instance.Open(); } private void OnClickBugTitle() { CloseSubWindows(); functionOrder =4; WindowCenter.Instance.Open(); } } }