using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace vnxbqy.UI { public class BossTrialActWin : OneLevelWin { StoreModel model { get { return ModelCenter.Instance.GetModel(); } } BossTrialModel bossTrialActModel { get { return ModelCenter.Instance.GetModel(); } } protected override void BindController() { base.BindController(); } protected override void AddListeners() { base.AddListeners(); SetFunctionListener(0, OpenBossTrial); SetFunctionListener(1, OpenLogin); SetFunctionListener(2, OpenMission); SetFunctionListener(3, OpenGift); SetFunctionListener(4, OpenRank); SetFunctionListener(5, OpenStore); } protected override void OnActived() { base.OnActived(); } protected override void OnPreOpen() { base.OnPreOpen(); } protected override void OnPreClose() { base.OnPreClose(); } private void OpenBossTrial() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 0; } private void OpenLogin() { CloseSubWindows(); WindowCenter.Instance.Open(fixParentName: "BossTrialActWin"); functionOrder = 1; } private void OpenMission() { CloseSubWindows(); WindowCenter.Instance.Open(fixParentName: "BossTrialActWin"); functionOrder = 2; } private void OpenGift() { CloseSubWindows(); WindowCenter.Instance.Open(fixParentName: "BossTrialActWin"); functionOrder = 3; } private void OpenRank() { CloseSubWindows(); WindowCenter.Instance.Open(); functionOrder = 4; } private void OpenStore() { CloseSubWindows(); model.rankActStore_ActType = BossTrialModel.operaType; model.rankActStore_StoreType = bossTrialActModel.operationBossTrial.m_ShopType; model.rankActStore_MoneyType = 43; WindowCenter.Instance.Open(fixParentName: "BossTrialActWin"); functionOrder = 5; } } }