Forum rules - please read before posting.

CameraOnOff

edited July 2014 in Technical Q&A
I beg u :(

public class CameraOnOff : MonoBehaviour;

void turnOn ()
{
 this.camera.enabled = true;
 HERE I WANT TO PAUSE THE GAME
}

pls :(


Comments

  • I think I just need the script that pause the game when u click on the "ingame" menu...
  • edited July 2014

    Please, no sad faces!

    GameObject.FindWithTag (Tags.persistentEngine).GetComponent <StateHandler>().gameState = GameState.Paused;

    will pause the game and AC, and

    GameObject.FindWithTag (Tags.persistentEngine).GetComponent <StateHandler>().gameState = GameState.Normal;

    will resume gameplay.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.