fix:1、UI更换(全部更换完)
This commit is contained in:
@@ -163,23 +163,23 @@ namespace LoveLegend
|
||||
Debug.Log(delayTime);
|
||||
Debug.Log("/////////////////6");
|
||||
ui.step.selectedIndex = 1;
|
||||
var anim_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("bg_parent") as GGraph, Fx_Type.fx_end_bg, ref closeCallback);
|
||||
// var anim_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("bg_parent") as GGraph, Fx_Type.fx_end_bg, ref closeCallback);
|
||||
if (successData_.IsWin)
|
||||
{
|
||||
anim_bg.state.SetAnimation(0, "win", false);
|
||||
anim_bg.state.Complete += (trackEntry) =>
|
||||
{
|
||||
anim_bg.state.SetAnimation(0, "win_stop", true);
|
||||
};
|
||||
// anim_bg.state.SetAnimation(0, "win", false);
|
||||
// anim_bg.state.Complete += (trackEntry) =>
|
||||
// {
|
||||
// anim_bg.state.SetAnimation(0, "win_stop", true);
|
||||
// };
|
||||
var fireworks = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("congra_parent") as GGraph, Fx_Type.fx_win, ref closeCallback);
|
||||
fireworks.state.SetAnimation(0, "out", true);
|
||||
|
||||
var coin = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("coin_parent") as GGraph, Fx_Type.fx_wins, ref closeCallback);
|
||||
coin.state.SetAnimation(0, "animation", true);
|
||||
coin.state.Complete += (trackEntry) =>
|
||||
{
|
||||
coin.state.SetAnimation(0, "animation2", true);
|
||||
};
|
||||
// var coin = FXManager.Instance.SetFx<SkeletonAnimation>(ui.GetChild("coin_parent") as GGraph, Fx_Type.fx_wins, ref closeCallback);
|
||||
// coin.state.SetAnimation(0, "animation", true);
|
||||
// coin.state.Complete += (trackEntry) =>
|
||||
// {
|
||||
// coin.state.SetAnimation(0, "animation2", true);
|
||||
// };
|
||||
|
||||
if (SaveData.GetSaveObject().LargeRewardNum < ConfigSystem.GetCommonConf().FreeClaims)
|
||||
((btn_claim3)ui.btn_mult).state.selectedIndex = 1;
|
||||
@@ -217,11 +217,11 @@ namespace LoveLegend
|
||||
}
|
||||
else
|
||||
{
|
||||
anim_bg.state.SetAnimation(0, "lose", false);
|
||||
anim_bg.state.Complete += (trackEntry) =>
|
||||
{
|
||||
anim_bg.state.SetAnimation(0, "lose_stop", true);
|
||||
};
|
||||
// anim_bg.state.SetAnimation(0, "lose", false);
|
||||
// anim_bg.state.Complete += (trackEntry) =>
|
||||
// {
|
||||
// anim_bg.state.SetAnimation(0, "lose_stop", true);
|
||||
// };
|
||||
|
||||
ui.btn_restart.SetClick(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user