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

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4740
    thehive
    Participant

      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 ();
      }

      }

      #22987
      Jonathan Gonzalez
      Participant

        I don’t see any issues with the script, least with the namespaces here. Nonetheless the script is included in the project files.

        #22988
        Andrew Molloy
        Participant

          Did you specifically name the file buttons.cs or something else?

          #22989
          Jonathan Gonzalez
          Participant

            In the project files there is one C# file called buttons.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Hi Jonathan , i couldn't see if the button script was included , so i copyed your into mono but got compile error. I ran …’ is closed to new replies.