- Home /
static variable
I have searched it and I think I get It but I still have some questions. So I'm following the Survival Shooter Official Tutorial and I came across with a static Score. I know that Static means that through all instances of the class ScoreManager the variable Score will share the same value because player won't have more than one Score so It makes sense. But the enemy has only one health too, so couldn't the variable playerhealth be static too? Also how would be the approach in a multiplayer game?
Your answer
Follow this Question
Related Questions
what is better using dontdestroyonload or making the variable static ? 0 Answers
Game freezes after restarting. 2 Answers
Static variable for accessing global object? 3 Answers
Scripts/buttons getting old (prefab?) values of variables 1 Answer
Accessing Static variable from another class gives null value! 1 Answer