Guest User

Untitled

a guest
May 10th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.     void Update()
  2.     {
  3.         if (Input.GetButton("Fire1") && Time.time > nextFire)
  4.         {
  5.             if (GlobalVars.isNext)
  6.             {
  7.                 Application.LoadLevel("ResultScene");      
  8.             }
  9.             nextFire = Time.time + fireRate;
  10.             ObjectPool.Instance.Activate(PrefContainer.Instance.bullet, bulletSpawn.position, bulletSpawn.rotation);
  11.             //Activate(bullet, bulletSpawn.position, bulletSpawn.rotation);
  12.             ShotSound.Play();
  13.         }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment