I’ll trying to create a menu but my gui’s dont show.
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class Menu : MonoBehaviour {
void Start()
{
}
void OnGui()
{
GUI.color = Color.white;
if (GUI.Button(new Rect(Screen.width / 2, Screen.height / 2, 100, 25), "BANG!"))
{
SceneManager.LoadScene("first");
}
}
}