Pretty easy to google…
http://forum.unity3d.com/threads/119537-You-are-trying-to-create-a-MonoBehaviour-using-the-new-keyword
It’s to do with what Boids inherits. New is apparently not the correct way to instantiate the object, it should be instatiated using the unity framework
gameObject.AddComponent<Boids>()
Related Contents:
- How to access a variable from another script in another gameobject through GetComponent?
- The located assembly’s manifest definition does not match the assembly reference
- The type or namespace name could not be found [duplicate]
- Unity: Null while making new class instance
- C# string reference type?
- Move GameObject over time
- Use Unity API from another Thread or call a function in the main Thread
- Could not load file or assembly or one of its dependencies
- Getting “type or namespace name could not be found” but everything seems ok?
- Accessing a variable from another script C# [duplicate]
- Unity game manager. Script works only one time
- Rotate GameObject over time
- How do I assign by “reference” to a class field in C#?
- Saving/loading data in Unity
- Simple event system in Unity
- “A namespace cannot directly contain members such as fields or methods” [closed]
- Unity – need to return value only after coroutine finishes
- In Unity (C#), why am I getting a NullReferenceException and how do I fix it? [duplicate]
- How to reference generic classes and methods in xml documentation
- How big is an object reference in .NET?
- Can’t add script component because the script class cannot be found?
- Make a sphere with equidistant vertices
- Unity how to make a Visual JoyStick in Unity
- Dependent DLL is not getting copied to the build output folder in Visual Studio
- In Unity, how can I pass values from one script to another?
- Play and wait for Animation/Animator to finish playing
- UnityWebRequest Embedding User + Password data for HTTP Basic Authentication not working on Android
- C# reflection and finding all references
- Unity singleton manager classes
- How to connect to database from Unity
- Why doesn’t C# support the return of references?
- Objects in Scene dark after calling LoadScene/LoadLevel
- What use is the Aliases property of assembly references in Visual Studio 8
- Build and load Assetbundles in Unity
- Fading in/out GameObject
- What is a “rooted reference”?
- Camera.main is null when performing raycast
- How to speed up the build and run process in unity for mobile devices iOS/Android [closed]
- Unrolled Loop works, for loop does not work [duplicate]
- Embed Unity3D app inside WPF application
- Interesting “params of ref” feature, any workarounds?
- Is Unityscript/Javascript discontinued?
- Namespace not recognized (even though it is there) [duplicate]
- Is it Possible to Return a Reference to a Variable in C#? [duplicate]
- 3D relative angle sum calculation
- Func delegate with ref variable
- Referenced Project gets “lost” at Compile Time
- Assembly binding redirect does not work
- Multithreading reference? [closed]
- c# Visual Studio …adding references programmatically