Search Unity

Expected class delgate enum interface or struct

Discussion in 'Getting Started' started by phantomunboxing, Feb 23, 2016.

  1. phantomunboxing

    phantomunboxing

    Joined:
    Nov 10, 2015
    Posts:
    43
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    You've got a method outside of a class. If you create a new script, Unity fills in a default script template for you... don't delete that; just insert your new method inside the class.

    I recommend going through a few of the scripting tutorials; it will save you a ton of time.
     
  3. phantomunboxing

    phantomunboxing

    Joined:
    Nov 10, 2015
    Posts:
    43
    I like watching streams to learn C# its more entertaining than mineless tutorials :D