drawing and changing GUI texture depending on a bool

Of course it doesn’t. Why is your texture reference an object? I am completely confused…