|
@@ -540,11 +540,9 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
Action onClickTarget = () => {
|
|
Action onClickTarget = () => {
|
|
|
g.gameObject.SetActive(false);
|
|
g.gameObject.SetActive(false);
|
|
|
AutoResetView.ins.action_OnDestroy += () => {
|
|
AutoResetView.ins.action_OnDestroy += () => {
|
|
|
- DoTweenUtil.CallDelay(1, () => {
|
|
|
|
|
- if (!g) return;
|
|
|
|
|
- g.clickedWillPlayAudioBtn = false;
|
|
|
|
|
- g.OnClick_ToNext();
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (!g) return;
|
|
|
|
|
+ g.clickedWillPlayAudioBtn = false;
|
|
|
|
|
+ g.OnClick_ToNext();
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
GameAssistUI.ins.action_OnClickBtnIdentity += onClickTarget;
|
|
GameAssistUI.ins.action_OnClickBtnIdentity += onClickTarget;
|
|
@@ -589,6 +587,49 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
// configs.Add(config.key, config);
|
|
// configs.Add(config.key, config);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ config = new NewUserGuiderConfig();
|
|
|
|
|
+ config.key = "准心高亮";
|
|
|
|
|
+ config.hitPosType = 1;
|
|
|
|
|
+ config.hitPos = Vector2.zero;
|
|
|
|
|
+ config.pointerActive = false;
|
|
|
|
|
+ config.frameTipText = "";
|
|
|
|
|
+ config.onStart = (g) => {
|
|
|
|
|
+ g.GetMaskClickedEvent().RemoveAllListeners();
|
|
|
|
|
+
|
|
|
|
|
+ GameMode gameMode = GameMgr.ins.gameMode;
|
|
|
|
|
+ if (gameMode.GetType().Equals(typeof(TimeLimitGameMode))) {
|
|
|
|
|
+ gameMode.PauseTimeCounting(g);
|
|
|
|
|
+ g.action_OnDestroy += () => gameMode.ResumeTimeCounting(g);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ g.AnimateIconPointerHit();
|
|
|
|
|
+
|
|
|
|
|
+ RectTransform iconRect = g.transform.Find("IconRect") as RectTransform;
|
|
|
|
|
+ iconRect.gameObject.SetActive(true);
|
|
|
|
|
+ g.hollowOutMask.isTargetRectCanThrough = false;
|
|
|
|
|
+ g.hollowOutMask.SetTarget(iconRect);
|
|
|
|
|
+
|
|
|
|
|
+ Transform centerPoint = TargetBody.ins.transform.Find("CenterPoint");
|
|
|
|
|
+ Transform sidePoint = TargetBody.ins.transform.Find("SidePoint");
|
|
|
|
|
+
|
|
|
|
|
+ float countDown = 5;
|
|
|
|
|
+ g.action_Update += () => {
|
|
|
|
|
+ Vector3 centerPos = RectTransformUtility.WorldToScreenPoint(Camera.main, centerPoint.position);
|
|
|
|
|
+ Vector3 sidePos = RectTransformUtility.WorldToScreenPoint(Camera.main, sidePoint.position);
|
|
|
|
|
+ float sizeLen = Mathf.Abs(centerPos.x - sidePos.x) * 2;
|
|
|
|
|
+ iconRect.position = centerPos;
|
|
|
|
|
+ iconRect.sizeDelta = JC.Unity.UI.RectTransformUtils.ScreenV3ToCanvasV3(Vector3.one * sizeLen, iconRect);
|
|
|
|
|
+ g.hollowOutMask.RefreshViewImmediate();
|
|
|
|
|
+ countDown -= Time.deltaTime;
|
|
|
|
|
+ if (countDown <= 0) {
|
|
|
|
|
+ g.clickedWillPlayAudioBtn = false;
|
|
|
|
|
+ g.OnClick_ToNext();
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ };
|
|
|
|
|
+ configs.Add(config.key, config);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
config = new NewUserGuiderConfig();
|
|
config = new NewUserGuiderConfig();
|
|
|
config.key = "教程结束";
|
|
config.key = "教程结束";
|
|
|
config.hitActive = false;
|
|
config.hitActive = false;
|
|
@@ -659,6 +700,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
"限时游戏-选择距离",
|
|
"限时游戏-选择距离",
|
|
|
"视角归位-触发",
|
|
"视角归位-触发",
|
|
|
// "视角归位-瞄准",
|
|
// "视角归位-瞄准",
|
|
|
|
|
+ "准心高亮",
|
|
|
"教程结束",
|
|
"教程结束",
|
|
|
});
|
|
});
|
|
|
|
|
|