Skip to content

Commit c474bdb

Browse files
Cambios menores de ajuste.
1 parent 1c05be9 commit c474bdb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dolphin Space Hunter/Assets/_Scripts/Ammunition_Reload/AmmunitionReloadScript.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ void Start()
3535
StartCoroutine(reloadAction());
3636
}
3737

38-
// Update is called once per frame
38+
3939
void Update()
4040
{
4141
if(Input.touchCount==1 && Input.GetTouch(0).phase == TouchPhase.Began && currentAmmunition<maxAmmunition){
42-
if(transform.localPosition.x<=colorBarRanges[0] || transform.localPosition.x>=colorBarRanges[3]){
42+
if(transform.localPosition.x <= colorBarRanges[0] || transform.localPosition.x >= colorBarRanges[3]){
4343
currentAmmunition += (maxAmmunition/10); //Red reload => +10% of ammo
4444
}else if(transform.localPosition.x <=colorBarRanges[1] || transform.localPosition.x>=colorBarRanges[2]){
45-
currentAmmunition += (maxAmmunition/4); //Yellow reload => +25% of ammo
45+
currentAmmunition += (maxAmmunition/5); //Yellow reload => +20% of ammo
4646
}else{
4747
currentAmmunition += (maxAmmunition/2); //Green reload => +50% of ammo
4848
}

Dolphin Space Hunter/Assets/_Scripts/Shooting_Scripts/ShipShooter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ private void shoot()
4848
GameObject projectileShot = Instantiate(projectile,
4949
shootingPoint.transform.position,
5050
Quaternion.LookRotation(attackVector));
51-
projectileShot.GetComponent<Rigidbody>().velocity = projectileShot.transform.forward * projectile.GetComponent<ProjectileScript>().projectileSpeed;
51+
projectileShot.GetComponent<Rigidbody>().velocity = projectileShot.transform.forward *
52+
projectile.GetComponent<ProjectileScript>().projectileSpeed;
5253
}
5354

5455
private Vector3 calculateSpread()

0 commit comments

Comments
 (0)