Turn off camera dark screen on Unity 5 (c#)

This is a method I used to turn off camera in Blind Setting Camera.main.cullingMask to Zero using UnityEngine; using System.Collections; /******************************************** UNITY 5.2.3 Blind Project ’15 Turn ON / Turn OFF Camera & Lights v 1.0 www.Finalmarco.com /********************************************/ public class SpegniLuci : MonoBehaviour { // Use this for initialization void Start () { //Turn Off … Read more

Quitting a scene using ESC key Unity5 (c#)

Quitting a scene using ESC key in Unity 5 using UnityEngine; using System.Collections; // Finalmarco.com – Random Blind code public class ExitGame : MonoBehaviour { // Use this for initialization void Start () { Cursor.visible = false; } // Update is called once per frame void Update () { if (Input.GetKeyDown(KeyCode.Escape)) { //Application.Quit(); Application.LoadLevel (“_Menu”); … Read more