fix:1、更换项目,使用winter来创建
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace FlowerPower
|
||||
namespace LoveLegend
|
||||
{
|
||||
public class BuygoldUICtrl : BaseUICtrl
|
||||
{
|
||||
@@ -28,29 +29,16 @@ namespace FlowerPower
|
||||
{
|
||||
ui = new BuygoldUI(this);
|
||||
ui.Open(args);
|
||||
ui.onShowAnim(args);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.onShowAnim(args);
|
||||
}
|
||||
}
|
||||
|
||||
public override void CloseUI(object args = null)
|
||||
{
|
||||
if (args != null && ui != null)
|
||||
if (ui != null && !ui.isClose)
|
||||
{
|
||||
ui.onHideAnim(args);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ui != null && !ui.isClose)
|
||||
{
|
||||
ui.Close();
|
||||
}
|
||||
|
||||
ui = null;
|
||||
ui.Close();
|
||||
}
|
||||
ui = null;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -68,13 +56,21 @@ namespace FlowerPower
|
||||
{
|
||||
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
|
||||
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
|
||||
HallManager.Instance.UpdateSecondEvent += removeAdCountDown;
|
||||
|
||||
}
|
||||
protected override void RemoveListener()
|
||||
{
|
||||
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
|
||||
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
|
||||
}
|
||||
|
||||
public void removeAdCountDown() {
|
||||
int cd = SaveData.GetSaveObject().remove_ad_time - Convert.ToInt32(GameHelper.GetNowTime());
|
||||
if (cd <= 0) {
|
||||
SaveData.GetSaveObject().is_get_removead = false;
|
||||
SaveData.GetSaveObject().remove_ad_time = 0;
|
||||
}
|
||||
}
|
||||
protected override void AddServerListener()
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user