Hey, I have 1, small question.
I done script menu, but i dunno how in js stop camera moving.
if(Input.GetKeyDown("escape")){
if(pauseEnabled == true){
//unpause the game
pauseEnabled = false;
Time.timeScale = 1;
AudioListener.volume = 1;
Screen.showCursor = false;
}
//else if game isn't paused, then pause it
else if(pauseEnabled == false){
pauseEnabled = true;
AudioListener.volume = 0;
Time.timeScale = 0;
Screen.showCursor = true;
}
}
}
When menu is active i try:
I try Camera.mainCamera.active = false
and, on no active
Camera.mainCamera.active = false
But it doesn’t work, camera back for self first possition, and when I Off menu, camera dont move and goes down. ( I dont saw map).
Could any1 get me resolve ?