I have this script that keeps count of the score when the player collects a collectible, when i try and display the score on screen i get the same 3 errors and cannot figure out how to display the score in a chosen location,
using UnityEngine;
using System.Collections;
public class ScoreGlobal : MonoBehaviour {
public int Score = 0;
void OnGUI()
{
GUILayout.Label(Rect(10,10), "score"+Score);
}
}
how can i display this on screen without errors?
sorry if its unclear.