fix:1、更换项目,使用winter来创建
This commit is contained in:
@@ -3,13 +3,13 @@ using FairyGUI;
|
||||
using Spine.Unity;
|
||||
|
||||
|
||||
namespace FlowerPower
|
||||
namespace LoveLegend
|
||||
{
|
||||
public class OpenBgUI : BaseUI
|
||||
{
|
||||
private OpenBgUICtrl ctrl;
|
||||
private OpenBgModel model;
|
||||
private FGUI.P02_bigImg.com_loadingBg ui;
|
||||
private FGUI.ZM_Img_02.com_loadingBg ui;
|
||||
private Action closeCallback;
|
||||
|
||||
public OpenBgUI(OpenBgUICtrl ctrl) : base(ctrl)
|
||||
@@ -20,7 +20,7 @@ namespace FlowerPower
|
||||
|
||||
protected override void SetUIInfo(UIInfo uiInfo)
|
||||
{
|
||||
uiInfo.packageName = "P02_bigImg";
|
||||
uiInfo.packageName = "ZM_Img_02";
|
||||
uiInfo.assetName = "com_loadingBg";
|
||||
uiInfo.layerType = UILayerType.Background;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
@@ -56,19 +56,13 @@ namespace FlowerPower
|
||||
|
||||
protected override void OnBind()
|
||||
{
|
||||
ui = baseUI as FGUI.P02_bigImg.com_loadingBg;
|
||||
ui = baseUI as FGUI.ZM_Img_02.com_loadingBg;
|
||||
}
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
var fx_hall = FXManager.Instance.SetFx<SkeletonAnimation>(baseUI.GetChild("bg_parent") as GGraph, Fx_Type.fx_hall, ref closeCallback);
|
||||
fx_hall.state.SetAnimation(0, "animation", true);
|
||||
var fx_logo = FXManager.Instance.SetFx<SkeletonAnimation>(baseUI.GetChild("ani_logo") as GGraph, Fx_Type.fx_logo, ref closeCallback);
|
||||
fx_logo.state.SetAnimation(0, "animation", false);
|
||||
fx_logo.state.Complete += (a) => {
|
||||
fx_logo.state.SetAnimation(0, "animation2", true);
|
||||
};
|
||||
|
||||
var sk = FXManager.Instance.SetFx<SkeletonAnimation>(baseUI.GetChild("bg_parent") as GGraph, Fx_Type.fx_login, ref closeCallback);
|
||||
sk.state.SetAnimation(0, "animation", true);
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
|
||||
Reference in New Issue
Block a user