Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (gameIsRunning && coin == null) {
- coin = Instantiate (coinPrefab, position, rotation) as GameObject;
- }
- void OnTriggerEnter (Collider col){
- if (col.tag == "Player") {
- Destroy (this.gameObject);
- }
- }
Add Comment
Please, Sign In to add comment