ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -54,7 +54,7 @@ public class uBehaviourRaderController : MonoBehaviour
|
||||
private void OnEnable()
|
||||
{
|
||||
BindOverlayVisibility();
|
||||
ApplyOverlayVisibility(btmandtopController.CurrentOverlayPanelsVisible);
|
||||
ApplyOverlayVisibility(hideWhenOverlayVisible && btmandtopController.CurrentOverlayPanelsVisible);
|
||||
if (reloadOnEnable && Application.isPlaying)
|
||||
{
|
||||
BeginLoad();
|
||||
@@ -168,6 +168,13 @@ public class uBehaviourRaderController : MonoBehaviour
|
||||
return;
|
||||
}
|
||||
|
||||
// Guard against misconfiguration where uRaderObj fell back to the controller host.
|
||||
// In that case host.GetChild loop would deactivate the radar host child itself.
|
||||
if (uRaderObj == gameObject)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Transform host = transform;
|
||||
Transform target = uRaderObj.transform;
|
||||
for (int i = 0; i < host.childCount; i++)
|
||||
@@ -218,7 +225,7 @@ public class uBehaviourRaderController : MonoBehaviour
|
||||
|
||||
private void HandleOverlayPanelsVisibilityChanged(bool visible)
|
||||
{
|
||||
ApplyOverlayVisibility(visible);
|
||||
ApplyOverlayVisibility(hideWhenOverlayVisible && visible);
|
||||
}
|
||||
|
||||
private void ApplyOverlayVisibility(bool overlayVisible)
|
||||
|
||||
Reference in New Issue
Block a user