mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 00:57:14 +08:00
24 lines
550 B
C#
24 lines
550 B
C#
|
|
using Base;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
|
||
|
|
namespace Map
|
||
|
|
{
|
||
|
|
public class MiniMap : MonoBehaviour,ITickUI
|
||
|
|
{
|
||
|
|
public Image background;
|
||
|
|
public RawImage texture;
|
||
|
|
private bool _show = true;
|
||
|
|
|
||
|
|
|
||
|
|
public void TickUI()
|
||
|
|
{
|
||
|
|
if (_show != Setting.Instance.CurrentSettings.showMiniMap)
|
||
|
|
{
|
||
|
|
_show = Setting.Instance.CurrentSettings.showMiniMap;
|
||
|
|
texture.gameObject.SetActive(_show);
|
||
|
|
background.enabled = _show;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|