18 lines
392 B
C#
18 lines
392 B
C#
using UnityEngine;
|
|
|
|
namespace I2.Loc
|
|
{
|
|
|
|
public class CallbackNotification : MonoBehaviour
|
|
{
|
|
public void OnModifyLocalization()
|
|
{
|
|
if (string.IsNullOrEmpty(Localize.MainTranslation))
|
|
return;
|
|
|
|
string PlayerColor = LocalizationManager.GetTranslation( "Color/Red" );
|
|
|
|
Localize.MainTranslation = Localize.MainTranslation.Replace("{PLAYER_COLOR}", PlayerColor);
|
|
}
|
|
}
|
|
} |