Please help! Public Void unexpected, school project!
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class uiManager : MonoBehaviour {
public Button[] buttons;
public Text scoreText;
bool gameOver;
int score;
// Use this for initialization
void Start () {
gameOver = false;
score = 0;
InvokeRepeating ("scoreUpdate", 1.0f, 0.5f);
}
// Update is called once per frame
void Update () {
**void scoreUpdate(){**
if (gameOver == false) {
score += 1;
}
}
**public void gameOverActivated(){**
gameOver = true;
foreach (Button button in buttons) {
button.gameObject.SetActive(true);
}
}
public void Play(){
Application.LoadLevel ("Level1");
}
public void Pause(){
if (Time.timeScale == 1) {
Time.timeScale = 0;
}
else if (Time.timeScale == 0) {
Time.timeScale = 1;
}
}
public void Menu(){
Application.LoadLevel ("menuScene");
}
public void Exit(){
Application.Quit ();
}
}
Here's what's up. So I was doing my project and everything was working fine until the next thing I know I'm faced with these problems out of the blue. I can't find a way to fix it! I'm still an amateur at this and I'm probably missing something obvious. Please help! Thank you!
screen-shot-2017-05-14-at-65923-pm.png
(32.4 kB)
Comment
Your answer
Follow this Question
Related Questions
Not all code paths return a value error on a void function 0 Answers
Unexpected symbol 'void' and Parsing error 1 Answer
C# Error while trying to set up shot damage and headshots 0 Answers
I need help I can't find the error in my code! 1 Answer
I need someone to help me: error CS1525: Unexpected symbol `void' 0 Answers