Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update()
- {
- if (Input.GetButton("Fire1") && Time.time > nextFire)
- {
- if (GlobalVars.isNext)
- {
- Application.LoadLevel("ResultScene");
- }
- nextFire = Time.time + fireRate;
- ObjectPool.Instance.Activate(PrefContainer.Instance.bullet, bulletSpawn.position, bulletSpawn.rotation);
- //Activate(bullet, bulletSpawn.position, bulletSpawn.rotation);
- ShotSound.Play();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment