This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inside the public virtual void Pause() function on line 270 aprox, | |
//we add the following code ad the proper pause and unpause logic blocks. | |
var mainCamera = GameObject.FindGameObjectWithTag("MainCamera"); | |
if (mainCamera != null) | |
{ | |
var cam = mainCamera.GetComponent<Camera>(); | |
cam.depth = -1; //-1 when pausing, 1 when unpausing. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inside the public virtual void Pause() function on line 270 aprox, | |
//we add the following code ad the proper pause and unpause logic blocks. | |
var mainCamera = GameObject.FindGameObjectWithTag("MainCamera"); | |
if (mainCamera != null) | |
{ | |
var cam = mainCamera.GetComponent<Camera>(); | |
cam.depth = -1; //-1 when pausing, 1 when unpausing. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const filename = 'movies.json'; | |
function readData() { | |
try { | |
// Check if the file exists | |
if (!fs.existsSync(filename)) { | |
// If not, create an empty file | |
fs.writeFileSync(filename, '{"movies":[]}', 'utf8'); | |
} |