//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, December 18, 2018
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
[XLua.Hotfix]
|
public class GatherSoulDungeonStepHintWin : Window
|
{
|
[SerializeField] RectTransform m_Container;
|
#region Built-in
|
protected override void BindController()
|
{
|
}
|
|
protected override void AddListeners()
|
{
|
}
|
|
protected override void OnPreOpen()
|
{
|
GatherSoulBuildBehaviour.defendBuildRefresh += DefendBuildRefresh;
|
Display();
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
GatherSoulBuildBehaviour.defendBuildRefresh -= DefendBuildRefresh;
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
#endregion
|
|
void Display()
|
{
|
m_Container.gameObject.SetActive(!GatherSoulBuildBehaviour.satisfyBuild);
|
}
|
|
private void DefendBuildRefresh()
|
{
|
Display();
|
}
|
|
}
|
|
}
|
|
|
|
|