// Update is called once per frame
 void Update()
 {
     if (isLookAt) {
         //GetComponent<Image>().color = Color.gray;
         timerLook += Time.deltaTime;
         if (timerLook >= timerDuration) {
             //GetComponent<AudioSource> ().Stop ();
             isLookAt = false;
             timerLook = 0f;
             waitCanvas.SetActive (false);
             initial = (GameInitial) gameController.GetComponent(typeof(GameInitial));
             initial.StartScan ();
         }
     } else {
         timerLook = 0f;
         //GetComponent<Image> ().color = Color.white;
     }
 }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (isLookAt)
     {
         //GetComponent<Image>().color = Color.gray;
         timerLook += Time.deltaTime;
         if (timerLook >= timerDuration)
         {
             //GetComponent<AudioSource> ().Stop ();
             isLookAt  = false;
             timerLook = 0f;
             waitCanvas.SetActive(false);
             initial = (GameInitial)gameController.GetComponent(typeof(GameInitial));
             initial.StartScan();
         }
     }
     else
     {
         timerLook = 0f;
         //GetComponent<Image> ().color = Color.white;
     }
 }