Files
Fishing2/Assets/ThirdParty/I2/Localization/Examples/Common/Scripts/GlobalParametersExample.cs
2025-05-10 12:49:47 +08:00

18 lines
441 B
C#

namespace I2.Loc
{
public class GlobalParametersExample : RegisterGlobalParameters
{
public override string GetParameterValue( string ParamName )
{
if (ParamName == "WINNER")
return "Javier"; // For your game, get this value from your Game Manager
if (ParamName == "NUM PLAYERS")
return 5.ToString();
return null;
}
}
}