|
|
@@ -199,6 +199,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
config.key = "陀螺仪校准-开始";
|
|
|
config.frameTipPivot = "rt";
|
|
|
config.frameTipText = "";
|
|
|
+ config.delayExecute = false;
|
|
|
config.onPrepare = (g) => {
|
|
|
g.SetCanvasSortOrder(DeviceCalibrateView.ins.GetComponent<Canvas>().sortingOrder + 1);
|
|
|
RectTransform btn = DeviceCalibrateView.ins.transform.Find("Gyr/Button") as RectTransform;
|
|
|
@@ -213,7 +214,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
config.onStart = (g) => {
|
|
|
g.GetMaskClickedEvent().RemoveAllListeners();
|
|
|
g.action_Update += () => {
|
|
|
- bool doing = DeviceCalibrateView.ins.calibrateMagDoing;
|
|
|
+ bool doing = DeviceCalibrateView.ins.gyrCalibrating;
|
|
|
g.iconPointer.gameObject.SetActive(!doing);
|
|
|
g.iconPointerHit.gameObject.SetActive(!doing);
|
|
|
};
|
|
|
@@ -295,6 +296,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
config.key = "地磁计校准-开始";
|
|
|
config.frameTipPivot = "rt";
|
|
|
config.frameTipText = "";
|
|
|
+ config.delayExecute = false;
|
|
|
config.onPrepare = (g) => {
|
|
|
g.SetCanvasSortOrder(DeviceCalibrateView.ins.GetComponent<Canvas>().sortingOrder + 1);
|
|
|
RectTransform btn = DeviceCalibrateView.ins.transform.Find("Mag/MagReset") as RectTransform;
|
|
|
@@ -496,6 +498,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
g.customPreparePass = false;
|
|
|
return;
|
|
|
}
|
|
|
+ LayoutRebuilder.ForceRebuildLayoutImmediate(TimeLimitGameDistanceSelectView.ins.transform as RectTransform);
|
|
|
g.customPreparePass = true;
|
|
|
g.hollowOutMask.enabled = true;
|
|
|
g.ActiveBtnSkip(true);
|
|
|
@@ -614,8 +617,6 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
g.action_OnDestroy += () => gameMode.ResumeTimeCounting(g);
|
|
|
}
|
|
|
|
|
|
- g.AnimateIconPointerHit();
|
|
|
-
|
|
|
RectTransform iconRect = g.transform.Find("IconRect") as RectTransform;
|
|
|
iconRect.gameObject.SetActive(true);
|
|
|
g.hollowOutMask.isTargetRectCanThrough = false;
|
|
|
@@ -637,6 +638,7 @@ public class NewUserGuiderManager : MonoBehaviour
|
|
|
g.clickedWillPlayAudioBtn = false;
|
|
|
g.OnClick_ToNext();
|
|
|
}
|
|
|
+ g.iconPointerHit.transform.position = CrossHair.ins.transform.position;
|
|
|
};
|
|
|
};
|
|
|
configs.Add(config.key, config);
|
|
|
@@ -752,4 +754,5 @@ public class NewUserGuiderConfig
|
|
|
public string frameTipTextKey = null;
|
|
|
public Action<NewUserGuider> onPrepare;
|
|
|
public Action<NewUserGuider> onStart;
|
|
|
+ public bool delayExecute = true;
|
|
|
}
|