Guest User

Untitled

a guest
Aug 15th, 2015
260
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class scaryturnoff : MonoBehaviour {
  5.  
  6.     public AudioClip off;
  7.  
  8.  
  9.     void OnTriggerEnter(Collider other)
  10.     {
  11.         GetComponent<AudioSource>().Play();
  12.  
  13.  
  14.     }
  15.    
  16.     // Update is called once per frame
  17.     void Update () {
  18.    
  19.     }
  20. }
RAW Paste Data