Added shanking mechanic to kill patron.
This commit is contained in:
parent
3bf37536fb
commit
04200df045
7 changed files with 45 additions and 19 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue