Implementation of shanking mechanics.

This commit is contained in:
shakurass 2014-04-26 13:23:11 -06:00
commit f0f6c6cbe6
24 changed files with 523 additions and 25 deletions

21
Assets/ShankTimer.cs Normal file
View file

@ -0,0 +1,21 @@
using UnityEngine;
using System.Collections;
public class ShankTimer : MonoBehaviour {
private float timer;
public float length;
// Use this for initialization
void Start () {
timer = 0f;
}
// Update is called once per frame
void Update () {
timer += Time.deltaTime;
if (timer > length)
GameObject.Destroy (gameObject);
}
}