品质色块修改

This commit is contained in:
2025-10-23 22:59:04 +08:00
parent af7592331b
commit baa54a3f04
1617 changed files with 825 additions and 463 deletions

View File

@@ -2,6 +2,7 @@
using UnityEngine;
using NBC;
using NBF.Fishing2;
namespace NBF
{
@@ -18,16 +19,15 @@ namespace NBF
protected override void OnShow()
{
ItemInfo = GetData() as ItemInfo;
// Model.SetModel();
// Instance = Object.Instantiate(prefab);
// Debug.LogError($"预制体:{prefab.name} 实例={Instance}");
// Model.SetModel(Instance);
Quality.SetQuality(ItemInfo.Config.Quality);
Content.Basic.SetInfo(ItemInfo);
Content.Basic.SetInfo(ItemInfo);
var model = PrefabsHelper.CreatePrefab(ItemInfo.Config.Model);
Model.SetModel(model);
// LoadModel(ItemInfo.Config.Model);
Game.Input.OnUICanceled += OnUICanceled;
}
@@ -49,6 +49,8 @@ namespace NBF
}
}
protected override void OnHide()
{
Game.Input.OnUICanceled -= OnUICanceled;