Added shanking mechanic to kill patron.

This commit is contained in:
shakurass 2014-04-26 14:13:06 -06:00
commit 04200df045
7 changed files with 45 additions and 19 deletions

View file

@ -11,4 +11,19 @@ public class Patron : MonoBehaviour {
nva.SetDestination(pos);
nva.updateRotation = false;
}
void OnTriggerEnter(Collider other) {
//Instantiate(explosion, transform.position, transform.rotation);
if (other.tag == "Shank")
{
//Instantiate (playerExplosion, other.transform.position, other.transform.rotation);
Destroy(gameObject);
}
// gameController.AddScore (scoreValue);
//
// Destroy (other.gameObject);
// Destroy (gameObject);
}
}