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.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
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.