fix:1、添加arrow的游戏代码,和相关的周边功能
This commit is contained in:
@@ -47,25 +47,24 @@ namespace RedHotRoast
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
ui.state.selectedIndex = GameHelper.IsGiftSwitch() ? 1 : 0;
|
||||
|
||||
if (GameHelper.IsGiftSwitch())
|
||||
{
|
||||
((FGUI.ZM_Common_01.com_open_tips)ui.com_tips).t0.Play(() =>
|
||||
{
|
||||
DOVirtual.DelayedCall(0.2f, () =>
|
||||
{
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenGameUI_Close);
|
||||
});
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
DOVirtual.DelayedCall(0.7f, () => { GameDispatcher.Instance.Dispatch(GameMsg.reset_game, args); });
|
||||
InitView();
|
||||
// DOVirtual.DelayedCall(0.2f, () =>
|
||||
// {
|
||||
// if (GameHelper.GetLevel() - 1 < ConfigSystem.GetLevelUnlockConfig().Count&&GameHelper.IsGiftSwitch())
|
||||
// {
|
||||
// LevelUnlock levelUnlock_ = ConfigSystem.GetLevelUnlockConfig()[GameHelper.GetLevel() - 1];
|
||||
// if (levelUnlock_.LeveType != 0)
|
||||
// {
|
||||
// if (!DataMgr.LevelUnlockList.Value.Contains(GameHelper.GetLevel() - 1))
|
||||
// {
|
||||
// uiCtrlDispatcher.Dispatch(UICtrlMsg.UnlockLevelUI_Open, GameHelper.GetLevel() - 1);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
if (AudioManager.Instance.IsOpenEffect)
|
||||
{
|
||||
AudioManager.Instance.PlayDynamicEffect(AudioConst.game_open);
|
||||
@@ -107,19 +106,7 @@ namespace RedHotRoast
|
||||
|
||||
DOVirtual.DelayedCall(1.5f, () =>
|
||||
{
|
||||
// ui.tips_node1.visible = true;
|
||||
// var open_bg = FXManager.Instance.SetFx<SkeletonAnimation>(ui.tips_node1, Fx_Type.fx_open_bg, ref closeCallback);
|
||||
// open_bg.state.SetAnimation(0, "animation", true);
|
||||
// ui.tips_node1.SetScale(1.25f, 1.25f);
|
||||
//
|
||||
// ui.tips_node.visible = true;
|
||||
// var open_game = FXManager.Instance.SetFx<SkeletonAnimation>(ui.tips_node, Fx_Type.fx_open, ref closeCallback);
|
||||
// open_game.state.SetAnimation(0, "animation", false);
|
||||
// open_game.state.Complete += (a) =>
|
||||
// {
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenGameUI_Close);
|
||||
// };
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user