f i use this code
using UnityEngine;
public class GameManager : MonoBehaviour {
bool gameHasEnded = false;
public void EndGame ()
{
if (gameHasEnded == false)
{
Debug.Log ("Game over");
}
if (RenderBuffer.position.y < -1f)
{
FindObjectOfType ().EndGame ();
}
}
}
it gives this error: Assets/Scripts/PlayerMovement.cs(28,246): error CS1525: Unexpected symbol `end-of-file' i know i'm missing a bracket but i don't know where to put it, if someone could edit this code and add it for me?
↧









