//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Friday, May 31, 2019 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class RoleStrongerFrameWin : OneLevelWin { protected override void AddListeners() { base.AddListeners(); SetFunctionListener(0, OnPromoteFunc1); SetFunctionListener(1, OnPromoteFunc2); } protected override void OnActived() { base.OnActived(); } protected override void OnPreClose() { CloseSubWindows(); } private void OnPromoteFunc1() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 0; } private void OnPromoteFunc2() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 1; } } }