So I started making a game yesterday, but not really. I didn't even finish the title screen because I made the separate scene for the game but the script tutorial from 3 years ago didn't work. It's a C# script. Visual studio says that there is something wrong with it and the SceneManager in the script won't turn green-blue. I can't drag the script into the canvas like in the video. This is the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement
public class NewBehaviourScript : MonoBehaviour
{
public void PlayButton()
{
void SceneManager.LoadScene("game")
}
}
But now, I should probably explain what this game is. It will be like Tetris, but with words. Random words will fall and occasionally a > or < will fall. The > and the < will make the letter it falls on move in their respective directions. Any letters in the way when the letters move will also move.
Can you fix my bad code? Maybe I just forgot a semicolon that I didn't notice in the tutorial or SceneManager is something else now.
Edit: I forgot to mention I am using Unity.