UI换了很多,spine主视觉停用
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Bansonic
|
||||
@@ -89,7 +89,7 @@ namespace Bansonic
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return Create("未知物品", null, amount, ItemRarity.None);
|
||||
return Create(LocalizationService.Get("item.unknown.store_item", "Unknown Item"), null, amount, ItemRarity.None);
|
||||
}
|
||||
|
||||
return Create(item.itemName, item.itemIcon, amount, item.itemRarity);
|
||||
@@ -99,7 +99,7 @@ namespace Bansonic
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return Create("未知经验瓶", null, amount, ItemRarity.None);
|
||||
return Create(LocalizationService.Get("item.unknown.exp_bottle", "Unknown EXP Bottle"), null, amount, ItemRarity.None);
|
||||
}
|
||||
|
||||
return Create(item.expBottleName, item.expBottleSprite, amount, item.itemRarity);
|
||||
@@ -109,7 +109,7 @@ namespace Bansonic
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return Create("未知培养材料", null, amount, ItemRarity.None);
|
||||
return Create(LocalizationService.Get("item.unknown.growth_material", "Unknown Growth Material"), null, amount, ItemRarity.None);
|
||||
}
|
||||
|
||||
return Create(item.growthMaterialName, item.growthMaterialSprite, amount, item.itemRarity);
|
||||
@@ -119,7 +119,7 @@ namespace Bansonic
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return Create("未知装备材料", null, amount, ItemRarity.None);
|
||||
return Create(LocalizationService.Get("item.unknown.equipment_material", "Unknown Equipment Material"), null, amount, ItemRarity.None);
|
||||
}
|
||||
|
||||
return Create(item.consumableName, item.consumableSprite, amount, item.itemRarity);
|
||||
@@ -129,7 +129,7 @@ namespace Bansonic
|
||||
{
|
||||
if (equipment == null)
|
||||
{
|
||||
return Create("未知记忆", null, amount, ItemRarity.None);
|
||||
return Create(LocalizationService.Get("item.unknown.memory", "Unknown Memory"), null, amount, ItemRarity.None);
|
||||
}
|
||||
|
||||
return Create(
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace Bansonic
|
||||
public void display(object message, float? waitTime = null, float? fadeTotalTime = null)
|
||||
{
|
||||
string content = message?.ToString() ?? "null";
|
||||
content = LocalizationService.LocalizeLiteral(content);
|
||||
_logAction($"{_prefix} {content}");
|
||||
|
||||
// 触发 UI 事件
|
||||
|
||||
@@ -105,7 +105,7 @@ public class _gnp : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
Camera anyCam = FindFirstObjectByType<Camera>();
|
||||
Camera anyCam = SceneObjectLookupCache.FindFirst<Camera>();
|
||||
if (anyCam != null)
|
||||
{
|
||||
canvas.worldCamera = anyCam;
|
||||
|
||||
Reference in New Issue
Block a user