(client) feat:实现热重载,实现多维度,实现武器,实现掉落物,实现状态UI,实现攻击AI (#44)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
24
Client/Assets/Scripts/Map/MiniMap.cs
Normal file
24
Client/Assets/Scripts/Map/MiniMap.cs
Normal file
@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user