Added textures and drinking mechanics.

This commit is contained in:
shakurass 2014-04-26 18:16:21 -06:00
commit 78e42c158c
39 changed files with 779 additions and 15 deletions

View file

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