Global Variables - Unity
So im currently making a game in unity and i wanna have a gravity tile that basically gives you velocity, depending on the tile itself - either upwards velocity or downwards velocity. I kinda did it but i cant set a different velocity for the different tiles. For example i set a velocity of 2 on the up tiles and -2 on the down tiles, but it registers the velocity as 2 and both tiles act as up tiles. I've attached pictures to hopefully clear up my problem!

