Skip to content

Instantly share code, notes, and snippets.

View udithishara's full-sized avatar
🏠
Working from home

Udith Ishara Madusanka udithishara

🏠
Working from home
View GitHub Profile
//disable mouselook and movements
xAxisCam = gameObject.Find("Player").GetComponent("MouseLook");
xAxisCam.enabled = false;
yAxisCam = gameObject.Find("PlayerCamera").GetComponent("MouseLook");
yAxisCam.enabled = false;
Time.timeScale = 0;
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';