i have pause code in my unity and i also created GUI button in the same code to resume the game.
when i originally start the game for first time my character is walking in scene but when i resume after pause it would not walk in scene.
i do not seem to understand what is the reason behind it. if someone can explain me how to eliminate that error that would be big help.
I have attached the part of code where i have can resume game (start button) and quit game when game is paused.
Thanks in advanced
`else if (gamePausedBool == true)
{
GUI.skin = skin ;
if(GUI.Button(new Rect(Screen.width * .35f,Screen.height * .10f,300,100), "Start Game")) {
Application.LoadLevel("Game");
}
if(GUI.Button(new Rect(Screen.width * .35f,Screen.height * .35f,300,100),"Quit Game")) {
Application.Quit();
} `