Пример #1
0
    public void RestartGame()
    {
        GameObject player = GameObject.Find("Player");

        player.transform.position.Set(0, .5f, 0);
        playerRef.Reset();
        Application.LoadLevel(Application.loadedLevel);  //This works once the game is running
    }