SHOW:
|
|
- or go back to the newest paste.
1 | void OnTriggerEnter(Collider other) { | |
2 | myGameController.AddScore(scoreValue); | |
3 | Instantiate(enemyExplosion, transform.position, transform.rotation); | |
4 | if (other.gameObject.tag == "Player") { | |
5 | Instantiate(playerExplosion, transform.position, transform.rotation); | |
6 | - | myGameController.gameOver |
6 | + | myGameController.gameOver; |
7 | - | Destroy (other.gameObject); |
7 | + | } |
8 | Destroy (other.gameObject); | |
9 | - | } |
9 | + | |
10 | - | } |
10 | + | } |