Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Now I got 2 more errors: "Assets/GameAssets/Scripts/Flashlight.js(13,29): BCE0023: No appropriate version of 'UnityEngine.Object.Instantiate' for the argument list '(System.Type, UnityEngine.Vector3, UnityEngine.Quaternion)' was found." and "Assets/GameAssets/Scripts/Flashlight.js(9,24): BCE0023: No appropriate version of 'UnityEngine.Object.Destroy' for the argument list '(System.Type)' was found." I really don't see the problem, I checked 5 times for syntax errors and for misspellings but I can't find anything. Commented Jan 17, 2015 at 12:31
  • Both of those errors are because Flashlight is a Type, not an Object. You can't Instantiate or Destroy a Type, you need an actual instance. Commented Jan 18, 2015 at 13:53