Example #1
0
 // Use this for initialization
 void Start()
 {
     myLvlManager = GetComponent <levelManager> ();
     if (myLvlManager.IsLvlMainMenu())
     {
         policeLang = policeSubs.GetComponent <setLanguage> ();
         policeText = policeSubs.GetComponent <Text> ();
     }
     timeToSkip = 3.0f;
     skipTimer  = 0.0f;
     SetCanvases();
     GetPauseMenu();
     textList = new List <Text> (FindObjectsOfType <Text>());
 }
Example #2
0
 // Update is called once per frame
 void Update()
 {
     if (OVRInput.GetDown(OVRInput.Button.Back))
     {
         StopPoliceMonologue();
     }
     if (myLvlManager.IsLvlMainMenu())
     {
         if (policeMonoAudio.isPlaying)
         {
             SkipMonologueChecker();
         }
     }
     if (useTimescale)
     {
         Time.timeScale = timescale;
     }
 }