(client) chore:UI
This commit is contained in:
@ -28,9 +28,6 @@ namespace Map
|
||||
if (string.IsNullOrEmpty(_dimensionId))
|
||||
{
|
||||
_dimensionId = gameObject.name; // 如果未设置,默认使用GameObject名称
|
||||
Debug.LogWarning(
|
||||
$"Dimension ID not explicitly set for {gameObject.name}. Using GameObject name as ID: {_dimensionId}",
|
||||
this);
|
||||
}
|
||||
|
||||
return _dimensionId;
|
||||
|
@ -6,6 +6,7 @@ namespace Map
|
||||
{
|
||||
public class MiniMap : MonoBehaviour,ITickUI
|
||||
{
|
||||
public Image background;
|
||||
public RawImage texture;
|
||||
private bool _show = true;
|
||||
|
||||
@ -16,6 +17,7 @@ namespace Map
|
||||
{
|
||||
_show = Setting.Instance.CurrentSettings.showMiniMap;
|
||||
texture.gameObject.SetActive(_show);
|
||||
background.enabled = _show;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user