|
@@ -316,7 +316,8 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
g.hollowOutMask.isTargetRectCanThrough = false;
|
|
g.hollowOutMask.isTargetRectCanThrough = false;
|
|
|
g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.5f, 0.6f));
|
|
g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.5f, 0.6f));
|
|
|
g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.8f, 0.9f));
|
|
g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.8f, 0.9f));
|
|
|
- g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.zero);
|
|
|
|
|
|
|
+ g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.zero)
|
|
|
|
|
+ + RectTransformUtils.CanvasV3ToScreenV3(Vector3.left * 150f, g.iconPointer);
|
|
|
};
|
|
};
|
|
|
configs.Add(config.key, config);
|
|
configs.Add(config.key, config);
|
|
|
|
|
|
|
@@ -330,7 +331,8 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
// g.hollowOutMask.isTargetRectCanThrough = false;
|
|
// g.hollowOutMask.isTargetRectCanThrough = false;
|
|
|
g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.5f, 0.6f));
|
|
g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.5f, 0.6f));
|
|
|
g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.8f, 0.9f));
|
|
g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.8f, 0.9f));
|
|
|
- g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.zero);
|
|
|
|
|
|
|
+ g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.zero)
|
|
|
|
|
+ + RectTransformUtils.CanvasV3ToScreenV3(Vector3.left * 150f, g.iconPointer);
|
|
|
};
|
|
};
|
|
|
config.onStart = (g) => {
|
|
config.onStart = (g) => {
|
|
|
g.GetMaskClickedEvent().RemoveAllListeners();
|
|
g.GetMaskClickedEvent().RemoveAllListeners();
|
|
@@ -360,7 +362,8 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.one * 0.5f);
|
|
g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.one * 0.5f);
|
|
|
g.config.pointerRotZ = 180;
|
|
g.config.pointerRotZ = 180;
|
|
|
g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.2f, 0.3f));
|
|
g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.2f, 0.3f));
|
|
|
- g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.4f, 0.15f));
|
|
|
|
|
|
|
+ g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.4f, 0.15f))
|
|
|
|
|
+ + RectTransformUtils.CanvasV3ToScreenV3(Vector3.left * 150f, g.iconPointer);
|
|
|
};
|
|
};
|
|
|
config.onStart = (g) => {
|
|
config.onStart = (g) => {
|
|
|
g.GetMaskClickedEvent().RemoveAllListeners();
|
|
g.GetMaskClickedEvent().RemoveAllListeners();
|
|
@@ -418,7 +421,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
|
|
|
|
|
RectTransform iconHumanShoot = g.transform.Find("IconHumanShoot") as RectTransform;
|
|
RectTransform iconHumanShoot = g.transform.Find("IconHumanShoot") as RectTransform;
|
|
|
iconHumanShoot.pivot = Vector2.one * 0.5f;
|
|
iconHumanShoot.pivot = Vector2.one * 0.5f;
|
|
|
- iconHumanShoot.anchoredPosition = new Vector2(-193, -85);
|
|
|
|
|
|
|
+ iconHumanShoot.anchoredPosition = new Vector2(-350, -85);
|
|
|
iconHumanShoot.gameObject.SetActive(true);
|
|
iconHumanShoot.gameObject.SetActive(true);
|
|
|
|
|
|
|
|
GameMode gameMode = GameMgr.ins.gameMode;
|
|
GameMode gameMode = GameMgr.ins.gameMode;
|