CS0117: 'Terminal' does not contain a definition for 'Writeline'

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class hacker22: MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
print(“Ready”);
Terminal.WriteLine(“Hello”);
Terminal.WriteLine(“What would you like to hack into?”);
Terminal.Writeline(“press 1 for the local library”);
Terminal.Writeline(“press 2 for the Police Station”);
Terminal.Writeline(“Enter your Selection”);
}

// Update is called once per frame
void Update()
{
    
}

}
This is my code for the terminal hacker tutorial unity says that I do not know how to fix this three times.
Assets\hacker22.cs(14,18): error CS0117: ‘Terminal’ does not contain a definition for ‘Writeline’

Assets\hacker22.cs(13,18): error CS0117: ‘Terminal’ does not contain a definition for ‘Writeline’

Hi,

Does the syntax highlighting work in Visual Studio? If not, please watch lecture “Fixing Visual Studio Problems” (currently #16).


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms