Question by
DiamondBladez · Apr 07, 2020 at 07:45 AM ·
scripting problemscripting beginner
Getting an error when trying to add a script to a prefab
I am in doing the create with code course and up to Lesson 2.2 step 7 Destrop Projectiles:
I have created the script to destroy projectiles, but then when I try and drag it onto my food object in the hierarchy or inspector I get this error:
I am able to add a script to the object directly by clicking add component > Script and then creating a new one and it works.
But now I'm not sure where to find the new script? And also wondering what this error means and why I'm getting it?
annotation-2020-04-07-075907.png
(16.3 kB)
Comment
Your answer
Follow this Question
Related Questions
Please Help With Script 1 Answer
Issue with if-statements requiring two conditions. 1 Answer
Continuing a Dialogue 0 Answers
Rotate character 0 Answers
Need help increasing GameObject speed without affecting direction OnCollision. 0 Answers