Advertisement
Guest User

Untitled

a guest
Aug 15th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement