SamsonGame/Assets/Sources/I2/Localization/Examples/Common/Scripts/GlobalParametersExample.cs

18 lines
458 B
C#
Raw Normal View History

2021-12-29 20:50:11 +03:00
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;
}
}
}