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

Sounds dont work

$
0
0
Hi. I'm a beginner in Unity/C# and got a problem with sounds. None of them want to work. I receive an error in line 32 and 42 that only assignment, call, increment etc can be used as a statement. Could anyone help me to fix it?

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Sounds : MonoBehaviour
  5. {
  6.     public AudioClip footstepgravel;
  7.     public AudioClip breathjump;
  8.     public AudioClip fastdeath;
  9.     public AudioClip explosion;
  10.     public AudioClip cannonshot;...
Sounds dont work

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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