Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

CS0618 warning

$
0
0
I wanted to make a button called "Play" that would change the scene from "Menu" to "Game Modes" and only get this one error. I am asking for help as soon as possible.

This is my script:
using UnityEngine;
using System.Collections;

public class Menu : MonoBehaviour
{

void OnGUI()
{
if (GUI.Button(new Rect(10, 70, 50, 30), "Button Play"))
{
Application.LoadLevel("tryby gry");
}
}
}

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>