using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Pvr_UnitySDKAPI;
public class gobackSceneManager : MonoBehaviour
{
private bool IsTiming;
private float CountDown;
void Update()
{
}
private void ExitDection()
{
if (Controller.UPvr_GetControllerState(0) == ControllerState.Connected)
{
if (Controller.UPvr_GetKeyDown(0, Pvr_KeyCode.TRIGGER))
{
if (CountDown == 0)
{
CountDown = Time.time;
IsTiming = true;
}
else
{
Application.Quit();
}
}
if (IsTiming)
{
if (Time.time - CountDown > 2.0)
{
CountDown = 0;
IsTiming = false;
}
}
}
}
}