Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

What is up with this evil script(sorted still think its evil though:p)

$
0
0
Why does this script not only not work as in the tutorial but
it also crashes all my other scripts till i delete it and recompile everything
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class soundplay : MonoBehaviour {
  5.     Animator agent;
  6.     public AudioClip [] step ;
  7.    
  8.     void start(){
  9.  
  10.        
  11.     }
  12.    
  13.     void sound (){
  14.         audio.clip = step (Random.Range (0,step.length));
  15.  
  16.         audio.Play();
  17.        
  18.        
  19.     }}

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>