|
Sorry this is a total newby question. I am doing my first scripting, when I click on a cube (GameObject) it should inform me "this object was picked" my script looks like this: function OnMouseDown () { Debug.Log ("This object was picked"); } I get a message saying "The Referenced script on this behaviour is missing!" Can you tell me what I am doing incorrectly?
(comments are locked)
|
|
Look on that object in the inspector panel where the script should be. Edit :
(comments are locked)
|
|
Attach the Object to the script in the inspector. Make sure all the objects are attached to the script. Good luck!
(comments are locked)
|
