Hi, Im totally new at coding (been doing it just for a few days), so sorry if this is a easy fix and I just missed something. Im following a tutorial on youtube and using Visual Studio, so you know.
I got an error message (5,48); error CS1003:Syntax error, ‘,’ expected
How can I fix it?
Thank you
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class NewBehaviourScript : MonoBehaviour;
{
public static DialogueSystem instance;
public ELEMENTS elements;
void Awake()
{
instance = this;
}
// Use this for initialization
void Start()
{
}
/// <summary>
/// Say something and show it on the speech box.
/// </summary>
public void Say(string speech, string speaker = "")
{
StopSpeaking();
speaking = StartCoroutine(Speaking(speech, false, speaker));
}
/// <summary>
/// Say something to be added to what is already on the speech box.
/// </summary>
public void SayAdd(string speech, string speaker = "")
{
StopSpeaking();
speechText.text = targetSpeech;
speaking = StartCoroutine(Speaking(speech, true, speaker));
}
public void StopSpeaking()
{
if (isSpeaking)
{
StopCoroutine(speaking);
}
speaking = null;
}
}