Skip to content

Instantly share code, notes, and snippets.

@nasser
Created September 22, 2014 03:03
Show Gist options
  • Save nasser/17bab750e32bcc6f9473 to your computer and use it in GitHub Desktop.
Save nasser/17bab750e32bcc6f9473 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class SoundOnCollision : MonoBehaviour {
void OnCollisionEnter () {
audio.Play();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment