unity – Is it better to use a property with (public get; private set) or is it better to use a different variable in every script?

I’m new to unity and wondering which of the above is best practice in case of a global variable like isPlayerDead. I tried using property and called the method that uses the variable before calling the method that Sets the variable. This resulted in a bug which took me a while to figure it out. So, i’m a bit confused which of the two options is better or is there any other best practice that I’m not aware of. Any help is appreciated, Thanks in Advance!