bingo 项目提交
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
using System;
|
||||
using BingoBrain.Core;
|
||||
using DG.Tweening;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
|
||||
public class TipsViewUI : BaseUI
|
||||
{
|
||||
private TipsViewUICtrl ctrl;
|
||||
private TipsViewModel model;
|
||||
private FGUI.Common_animal.com_tips ui;
|
||||
|
||||
public TipsViewUI(TipsViewUICtrl ctrl) : base(ctrl)
|
||||
{
|
||||
uiName = UIConst.TipsViewUI;
|
||||
this.ctrl = ctrl;
|
||||
}
|
||||
|
||||
protected override void SetUIInfo(UIInfo uiInfo)
|
||||
{
|
||||
uiInfo.packageName = "Common_animal";
|
||||
uiInfo.assetName = "com_tips";
|
||||
uiInfo.layerType = UILayerType.Loading;
|
||||
}
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnClose()
|
||||
{
|
||||
ui?.FadeOut();
|
||||
}
|
||||
|
||||
protected override void OnBind()
|
||||
{
|
||||
ui = baseUI as FGUI.Common_animal.com_tips;
|
||||
}
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
if (args != null ) {
|
||||
InitView((Action) args);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
{
|
||||
ui?.FadeIn();
|
||||
}
|
||||
|
||||
protected override void AddListener()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void RemoveListener()
|
||||
{
|
||||
}
|
||||
|
||||
private void InitView(Action callback)
|
||||
{
|
||||
|
||||
ui.btn_relog.SetClick(()=>{
|
||||
|
||||
callback?.Invoke();
|
||||
CtrlCloseUI();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user