public class realscore : MonoBehaviour print("Text I want to write to Unity console"); // maybe a typo
Debug.Log("Prints to the console");