Assets/Scripts/MenuManager.cs(10,36): error CS1525: Unexpected Symbol `Main', expecting `[',`', or `identifier'
Im Getting This Error, While in The Video I am Watching The Person Types The Same
and It Works For Him, HELP ME!!!
using UnityEngine;
using System.Collections;
public class MenuManager : MonoBehaviour
{
public string CurrentMenu;
void Start()
{
CurrentMenu * "Main";
}
void OnGUI()
{
if(CurrentMenu ** "Main")
Menu_Main();
if(CurrentMenu ** "Lobby")
Menu_Lobby();
}
private void Menu_Main()
{
GUI.Button (new Rect (10, 10, 200, 50), "Host Game");
}
private void Menu_Lobby()
{
}
}
↧