// Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            PressFire();
        }
        if (Input.GetMouseButtonUp(0))
        {
            ReleaseFire();
        }

        if (Input.GetKeyDown(KeyCode.R))
        {
            ReloadInput();
        }

        if (Input.GetKeyDown(KeyCode.F))
        {
            RewindManagment.StartRewinding();
        }

        if (Input.GetKeyDown(KeyCode.Q))
        {
            habilidadClase.Activar();
        }
    }
Beispiel #2
0
    void Rewind()
    {
        // sonidoRewind.SoundVFX(soundRewind);

        if (PointsInTime.Count > 0)
        {
            ListsRewind pointInTime = PointsInTime[0];
            EnemyRewinding.transform.position = pointInTime.position;
            EnemyRewinding.transform.rotation = pointInTime.rotation;
            ;
            refStateManager.ChangeState(pointInTime.estado);
            VidaEnemyRewinding.VidaActual = pointInTime.vida;

            PointsInTime.RemoveAt(0);
        }
        else
        {
            RewindManagment.StopRewinding();

            print(" STOP Rewind");
        }
    }