Pause player application in QNX and EmbeddedLinux.
Resume player by calling Application.Resume() or send SIGCONT after this function is called. Only Platform QNX and EmbeddedLinux supports Application.Pause.
using UnityEngine; using System.Collections;
// Pause player 5 seconds later
public class ExampleClass : MonoBehaviour { float timer = 0; void Update() { timer += Time.deltaTime; if(timer >= 5) { timer = 0; Application.Pause(); } } }