//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Monday, January 21, 2019
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
|
namespace vnxbqy.UI
|
{
|
|
public class SkyTowerHintWin : Window
|
{
|
[SerializeField] Text m_Floor;
|
[SerializeField] RewardPreviewGroup m_Rewards;
|
|
SkyTowerModel model { get { return ModelCenter.Instance.GetModel<SkyTowerModel>(); } }
|
|
#region Built-in
|
protected override void BindController()
|
{
|
}
|
|
protected override void AddListeners()
|
{
|
}
|
|
protected override void OnPreOpen()
|
{
|
Display();
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
#endregion
|
|
private void Display()
|
{
|
var config = SkyTowerConfig.Get(model.currentFloor);
|
m_Floor.text = config.floorName;
|
m_Rewards.Display(config.rewards);
|
}
|
|
}
|
|
}
|