|
@@ -15,13 +15,14 @@ namespace GFGGame
|
|
private string guideKey;
|
|
private string guideKey;
|
|
private int guideId;
|
|
private int guideId;
|
|
private int guideIndex;
|
|
private int guideIndex;
|
|
|
|
+ private int _countGuideRect = 0;//需要找到引导对象没有找到对象的帧数计数
|
|
private bool justHint;//仅提示,无遮罩,点击任何地方可关闭引导
|
|
private bool justHint;//仅提示,无遮罩,点击任何地方可关闭引导
|
|
private bool NoTips;//无遮罩,无点击特效
|
|
private bool NoTips;//无遮罩,无点击特效
|
|
|
|
|
|
private float compTxtY = 0;//提示语位置
|
|
private float compTxtY = 0;//提示语位置
|
|
private string txtContent = "";
|
|
private string txtContent = "";
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI1;
|
|
-
|
|
|
|
|
|
+
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
EffectUIPool.Recycle(_effectUI1);
|
|
EffectUIPool.Recycle(_effectUI1);
|
|
@@ -168,6 +169,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
private void UpdateTime(object param = null)
|
|
private void UpdateTime(object param = null)
|
|
{
|
|
{
|
|
|
|
+ _countGuideRect = 0;
|
|
Timers.inst.AddUpdate(UpdateGuideRect);
|
|
Timers.inst.AddUpdate(UpdateGuideRect);
|
|
}
|
|
}
|
|
private void UpdateGuideRect(object param = null)
|
|
private void UpdateGuideRect(object param = null)
|
|
@@ -214,7 +216,13 @@ namespace GFGGame
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
_ui.m_mask.m_guideArea.SetXY(logicScreenPos.x, logicScreenPos.y);
|
|
_ui.m_mask.m_guideArea.SetXY(logicScreenPos.x, logicScreenPos.y);
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ _countGuideRect += 1;
|
|
|
|
+ //找不到引导对象3秒后关闭引导界面
|
|
|
|
+ if (_countGuideRect > 3 * 60) {
|
|
|
|
+ this.Hide();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
private void UpdateStudioMetalGuide(object param)
|
|
private void UpdateStudioMetalGuide(object param)
|