Hi Jonathan , i couldn't see if the button script was included , so i copyed your into mono but got compile error. I ran ...

posted to: Interactive Buttons
Hi Jonathan , i couldn't see if the button script was included , so i copyed your into mono but got compile error. I ran unity debugger and got name space error what am i doing wrong heres c/p of c# script. using UnityEngine; using System.Collections; public class buttons : MonoBehaviour { public void PlayButton (int scene) { Application.LoadLevel (scene); } public void ExitButton () { Application.Quit (); } }
  • Jonathan Gonzalez(jgonzalez) replied
    I don't see any issues with the script, least with the namespaces here. Nonetheless the script is included in the project files.
  • Andrew Molloy(darkmobius) replied
    Did you specifically name the file buttons.cs or something else?
  • Jonathan Gonzalez(jgonzalez) replied
    In the project files there is one C# file called buttons.