#Using static variables only to reset when switching back to main scene.
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
So basically, in my main scene, i have a player object with this code:
public static int Points;
public static int OtherPoints;
void Start(){
Points = 0;
OtherPoints = 0;
}
and in another scene, I'm increasing OtherPoints, but when i switch back, everything is reset as per void Start(). How do i fix this?