I cant seem to figure out the solution to this error.
the code is getting a collision message and is telling another game object to go from disabled to active but i cant figure out why this error is occurring.
thank you in advanced for your assistance.
this is the error given by console
Assets/scrips/stopper.cs(16,8): error CS1519: Unexpected symbol `private’ in class, struct, or interface member declaration
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class stopper : MonoBehaviour
{
public GameObject stopper
private bool finnished = false;
void update ()
{
if(finnished)
return;
stopper.SetActive (false);
}
public void Finnish()
{
finnished = true;
stopper.SetActive (true);
}
}