Permalink
Browse files

Unfucked some shit

  • Loading branch information...
CaiaphasVG committed Nov 13, 2017
1 parent 4df9e64 commit 6c5d1a7fae1027754dcf6e5251d2ed7120755800
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
@@ -250,6 +250,7 @@ public IEnumerator RespawnPlayer()
Instantiate(playerPrefab, spawnPoint.position, spawnPoint.rotation);
Transform clone = Instantiate(spawnParticlePrefab, spawnPoint.position, spawnPoint.rotation) as Transform;
Destroy(clone.gameObject, 1f);
}
public static void KillEnemy(Enemy enemy)
@@ -297,7 +298,6 @@ void SelectWeapon()
weapon.gameObject.SetActive(false);
i++;
}
}
void spawnPowerUp()
@@ -16,7 +16,8 @@ public class MachineGunAmmoCounter : MonoBehaviour {
// Update is called once per frame
void Update () {
wp = GameObject.Find("Obj_Astronaut_Weapon_Machinegun").GetComponent<Weapon>();
if(wp == null)
wp = GameObject.Find("Obj_Astronaut_Weapon_Machinegun").GetComponent<Weapon>();
ammoCounter.text = wp.currentAmmo.ToString() + " / " + wp.maxAmmo.ToString() ;
}

0 comments on commit 6c5d1a7

Please sign in to comment.