Help what’s wrong here!
using UnityEngine;
public class Shooter : MonoBehaviour
public AudioClip Shot;
{
void Update ( )
{... etc
Help what’s wrong here!
using UnityEngine;
public class Shooter : MonoBehaviour
public AudioClip Shot;
{
void Update ( )
{... etc
You must declare variables inside the class, not in the script declaration! Like this:
using UnityEngine;
public class Shooter : MonoBehaviour {
public AudioClip Shot; // declare variable inside the class
void Update ( )
{
...