Vodka vision implemented

This commit is contained in:
shakurass 2014-04-26 17:28:14 -06:00
commit a4bf704306
15 changed files with 277 additions and 27 deletions

View file

@ -5,18 +5,29 @@ public class PlayerController : MonoBehaviour {
public float speed = 10;
public float nextFire;
public float fireRate;
public float delay;
public GameObject shank;
public Transform playerAngle;
public Transform shankSpawn;
public GameObject vvAura;
public int swigCounter;
void Update()
{
int swigs = 0;
if (Input.GetButton("Fire1") && Time.time > nextFire)
{
nextFire = Time.time + fireRate;
nextFire = Time.time + delay;
Instantiate(shank, shankSpawn.position, playerAngle.rotation);
}
if (Input.GetButton("ActivateVV") && swigs <= swigCounter && Time.time > nextFire)
{
nextFire = Time.time + delay * 2;
Instantiate (vvAura, rigidbody.position, rigidbody.rotation);
swigs++;
}
}
void FixedUpdate() {