Text to speech for unity 5

Text to Speech on unity Make your own game talk using windows SAPI voices About SAPI The Speech Application Programming Interface or SAPI is an API developed by Microsoft to allow the use of speech recognition and speech synthesis within Windows applications. To date, a number of versions of the API have been released, which … Read more

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

Scene pause Unity 5 (c#)

Pausing a scene using UnityEngine; using System.Collections; //Finalmarco.com public class PausaGioco : MonoBehaviour { bool paused = false; void Update () { if(Input.GetKeyDown(“p”)) { gamePaused(); } } void OnGUI() { if (paused == true) { GUILayout.Label(“GAME IS PAUSED”); if(GUILayout.Button (“CLICK TO UNPAUSE”)) { gamePaused(); } } } void gamePaused() { if (Time.timeScale == 1) { … 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