Answer the question
In order to leave comments, you need to log in
How to reset variable values on level reload?
when restarting the level with SceneManager.LoadScene("play"); values are not reset to their original position. as I understand it because of the value of the static field, how can I solve this?
Answer the question
In order to leave comments, you need to log in
SCORE = GameObject.Find("deletepanel").GetComponent<score>();
public score SCORE;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question