Exemple #1
0
 private void ComprobarInputDisparo()
 {
     if (Input.GetButtonDown("Fire1"))
     {
         armaEquipada.ApretarGatillo();
     }
     if (Input.GetButtonUp("Fire1"))
     {
         armaEquipada.SoltarGatillo();
     }
     if (Input.GetKeyDown(KeyCode.R))
     {
         armaEquipada.Recargar();
     }
 }