How to reset a static variables on loading a scene [SceneManager.LoadScene(NameofScene)].

How to reset a static variables on loading a scene [SceneManager.LoadScene(NameofScene)].
I tried to initialize variables in Start function or in Awake function but i find bad result.

You can use SceneManager.sceneLoaded delegate and change the value of the variable in that deligate function.
Here’s a link on how to use SceneManager.sceneLoaded:
1

Example if you have static variable you can set all the static variables to 0 on Awake:

private void Awake()
{
diceSideThrown = 0;
player1StartWaypoint = 0;
player2StartWaypoint = 0;
}