GameHandler.SetVariable C# (CSharp) Method

SetVariable() public static method

public static SetVariable ( string key, string value ) : void
key string
value string
return void
    public static void SetVariable(string key, string value)
    {
        if(GameHandler.Instance().variables.ContainsKey(key))
        {
            GameHandler.Instance().variables[key] = value;
        }
        else
        {
            GameHandler.Instance().variables.Add(key, value);
        }
    }
GameHandler