//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, April 18, 2019 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class AlchemyBaseWin : OneLevelWin { #region Built-in protected override void AddListeners() { base.AddListeners(); SetFunctionListener(0, ShowAlchemyNormal); SetFunctionListener(1, ShowAlchemyFairy); SetFunctionListener(2, ShowAlchemyDrug); } protected override void OnActived() { base.OnActived(); } protected override void OnPreClose() { CloseSubWindows(); } #endregion private void ShowAlchemyFairy() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 1; } private void ShowAlchemyNormal() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 0; } private void ShowAlchemyDrug() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 2; } } }