Which of the 2 methods is more efficient?

Which of the 2 methods is more efficient?

Hi, I’m creating a text adventure for educational purposes. I am divided on how to make the player change Room. Both methods work, but I would like to know which of the 2 weighs more on the ram
(yes I know, the difference is minimal, but this allows me to understand if it costs the ram more to read code or read different events)

With the first method, we call any action with a single event.
With the second method, we need to create 4 different events, which return a string.

CODE:
https://pastebin.com/kGFkDtdB

IMG:

Tbh, performance implication is minimal on this scale (e.g. you’re not calling this thousands of times per frame, maybe just once in a few dozen seconds). Chose whatever is easier for you to work with.

I think method1 should be a bit faster. Though you better cache that ReadValue if you gonna use it multiple times.

var vec2 = value.ReadValue();
if(vec2.x > 0) {
// …
} else if(vec2.x < 0) {
// …
}