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