替换玩家模型素材,添加 ChildrenMap 配置挂点
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using SepCore.Event;
|
||||
using UnityGameFramework.Runtime;
|
||||
|
||||
namespace SepCore.UI
|
||||
@@ -14,10 +15,16 @@ namespace SepCore.UI
|
||||
private ItemTooltipContext _context;
|
||||
private Vector3 _targetPos;
|
||||
|
||||
public void SetMaskEnabled(bool enabled)
|
||||
{
|
||||
View.maskImage.enabled = enabled;
|
||||
}
|
||||
|
||||
public void RefreshUI(ItemTooltipContext context)
|
||||
{
|
||||
_context = context;
|
||||
_targetPos = ConvertWorldToAnchored(_context.TargetPos);
|
||||
View.maskImage.enabled = false;
|
||||
|
||||
foreach (RarityPanel panel in _rarityPanels)
|
||||
{
|
||||
@@ -54,6 +61,7 @@ namespace SepCore.UI
|
||||
|
||||
protected override void OnClose(bool isShutdown, object userData)
|
||||
{
|
||||
View.maskImage.enabled = false;
|
||||
_context = null;
|
||||
base.OnClose(isShutdown, userData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user