I've created a simple script for application to exit. But I see that MonoBehaviour class which I derived from and Application class (for calling Application.exit() method) are not reachable.
Seems like Visual Studio doesn't know anything about those classes. I've opened my script by double-clicking on it from Unity.
Am I doing something wrong?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExitScript : MonoBehaviour <- displayed as just text, not the actual class
{
public void exit()
{
Application.quit(); <- can go inside of Application class like it's just text
}
}