Skip to content

Instantly share code, notes, and snippets.

View orlax's full-sized avatar

Orlando Almario orlax

View GitHub Profile
@orlax
orlax / QuePeliculaVer.js
Created January 13, 2024 15:54
Que Pelicula Ver / What move should I Watch?
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');
}
@orlax
orlax / GameManager.cs
Created February 23, 2020 17:06
Fix to GameManager.cs on the CorgiEngine to get UICamera working propertly on the LWRP Unity 2019.1.1f1
// 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.
}
@orlax
orlax / GameManager.cs
Created February 23, 2020 17:06
Fix to GameManager.cs on the CorgiEngine to get UICamera working propertly on the LWRP Unity 2019.1.1f1
// 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.
}