ball 项目提交
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
using DG.Tweening;
|
||||
using System;
|
||||
using FairyGUI;
|
||||
using Spine.Unity;
|
||||
using UnityEngine;
|
||||
using FGUI.ZM_Lobby_03;
|
||||
|
||||
namespace BallKingdomCrush
|
||||
{
|
||||
|
||||
public class GuideViewUI : BaseUI
|
||||
{
|
||||
private GuideViewUICtrl ctrl;
|
||||
private GuideViewModel model;
|
||||
private FGUI.ZM_Novice_21.com_guide ui;
|
||||
|
||||
protected GProgressBar pb_loading;
|
||||
private Tweener tweener;
|
||||
|
||||
|
||||
protected int currValue;
|
||||
|
||||
public GuideViewUI(GuideViewUICtrl ctrl) : base(ctrl)
|
||||
{
|
||||
uiName = UIConst.GuideViewUI;
|
||||
this.ctrl = ctrl;
|
||||
}
|
||||
|
||||
protected override void SetUIInfo(UIInfo uiInfo)
|
||||
{
|
||||
uiInfo.packageName = "ZM_Novice_21";
|
||||
uiInfo.assetName = "com_guide";
|
||||
uiInfo.layerType = UILayerType.Loading;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = false;
|
||||
}
|
||||
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnClose()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnBind()
|
||||
{
|
||||
ui = baseUI as FGUI.ZM_Novice_21.com_guide;
|
||||
}
|
||||
private Action closeCallback;
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
TimerHelper.mEasy.AddTimer(0.7f, () =>
|
||||
{
|
||||
ui.btn_new_start.visible = true;
|
||||
var finger = FXManager.Instance.SetFx<SkeletonAnimation>(ui.finger_parent, Fx_Type.fx_hand_pre, ref closeCallback);
|
||||
finger.state.SetAnimation(0, "idle", true);
|
||||
});
|
||||
|
||||
(ui.btn_new_start as btn_play).text_lv.text = "Level " + GameHelper.GetLevel();
|
||||
ui.btn_new_start.SetClick(()=>{
|
||||
DataMgr.NoviceGuide.Value = true;
|
||||
GameHelper.gameType = 0;
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.OpenGame);
|
||||
CtrlCloseUI();
|
||||
});
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user