This commit is contained in:
2025-05-10 18:06:44 +08:00
parent e010759358
commit dea9a4f58e
47 changed files with 421 additions and 359 deletions

View File

@@ -24,7 +24,7 @@
namespace Rewired.Localization {
using Rewired;
using Interfaces;
using Rewired.Interfaces;
/// <summary>
/// Base class for management of localized strings.
@@ -93,7 +93,7 @@ namespace Rewired.Localization {
ReInput.InitializedEvent -= TrySetLocalizedStringProvider;
ReInput.InitializedEvent += TrySetLocalizedStringProvider;
if (!ReInput.isReady) return;
if (!Utils.UnityTools.IsNullOrDestroyed(ReInput.localization.localizedStringProvider)) {
if (!Rewired.Utils.UnityTools.IsNullOrDestroyed(ReInput.localization.localizedStringProvider)) {
UnityEngine.Debug.LogWarning("A localized string provider is already set. Only one localized string provider can exist at a time.");
return;
}