示例#1
0
 private void SwipeEnemigo(float distancia, float tiempo)
 {
     if (manager.GetComponent <ManagerTime>().timer <= 0 && !swipeEnemigo)
     {
         puntuacionEnemigo  = (distancia / (tiempo)) / 99000f;
         TiempoEnemigo.text = puntuacion.ToString("F2");
         AnimatorManagerEnemigo.Apuntar();
         swipeEnemigo = true;
     }
 }
示例#2
0
 public void TapPlayer()
 {
     if (CanShoot && !congelado)
     {
         disparo = true;
         AnimatorManager.Apuntar();
     }
     else
     {
         congelado = true;
         congeladoImage.SetActive(true);
     }
 }
示例#3
0
    private void Swipe(float distancia, float tiempo)
    {
        if (manager.GetComponent <ManagerTime> ().timer <= 0 && !swipe)
        {
            puntuacion         = (distancia / (tiempo / 2)) / 99000f;
            tiempoJugador.text = puntuacion.ToString("F2");
            tiempoJugador.gameObject.SetActive(true);


            AnimatorManager.Apuntar();
            swipe = true;
        }
    }
示例#4
0
 public void TapEnemy()
 {
     if (CanShoot && !congeladoEnemigo)
     {
         disparoEnemigo = true;
         AnimatorManagerEnemigo.Apuntar();
     }
     else
     {
         congeladoEnemigo = true;
         congeladoImage.SetActive(true);
     }
 }