|
@@ -83,10 +83,10 @@ namespace GFGGame
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
base.OnShown();
|
|
base.OnShown();
|
|
- if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0)
|
|
|
|
- {
|
|
|
|
- GRoot.inst.touchable = false;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0)
|
|
|
|
+ // {
|
|
|
|
+ // GRoot.inst.touchable = false;
|
|
|
|
+ // }
|
|
|
|
|
|
int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
|
|
int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
|
|
if (this.viewData != null)
|
|
if (this.viewData != null)
|
|
@@ -316,6 +316,12 @@ namespace GFGGame
|
|
|
|
|
|
private void OnClickBtnBuyTen(EventContext context)
|
|
private void OnClickBtnBuyTen(EventContext context)
|
|
{
|
|
{
|
|
|
|
+
|
|
|
|
+ if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0 && !ViewManager.isViewOpen(typeof(GuideView).FullName))
|
|
|
|
+ {
|
|
|
|
+ //防止点击太快,在引导开启前就被点击到,导致引导卡死
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
GObject obj = context.sender as GObject;
|
|
GObject obj = context.sender as GObject;
|
|
int boxId = (int)obj.data;
|
|
int boxId = (int)obj.data;
|
|
LuckyBoxCfg luckyBoxCfg = LuckyBoxCfgArray.Instance.GetCfg(boxId);
|
|
LuckyBoxCfg luckyBoxCfg = LuckyBoxCfgArray.Instance.GetCfg(boxId);
|
|
@@ -377,8 +383,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0)
|
|
if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0)
|
|
{
|
|
{
|
|
- GRoot.inst.touchable = true;
|
|
|
|
UpdateToCheckGuide(null);
|
|
UpdateToCheckGuide(null);
|
|
|
|
+ GRoot.inst.touchable = true;
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|