unity how to make a sotre in game code example
Example 1: how to rerun unity game in code
SceneManager.LoadScene( SceneManager.GetActiveScene().name );
Example 2: unity move with rigidbody.moveposition
rb2D.MovePosition(rb2D.position + velocity * Time.fixedDeltaTime);