Written in script logic unity is not right Haoshi

Implement a simple click to change the color of the object space counts increased script.
Click the plus spaces do not count
in fact not a Iput.GetKeyDown(KeyCode.Space)problem.
But of Unity editor.
I found the latest version of the editor has a Bug, drag the hierarchy of GameObject into the inspector in the script to GameObject assignment, seemingly assignment of fact did not .
Here Insert Picture Description
Assignment on OK in the code.

Published 26 original articles · won praise 6 · views 6454

Guess you like

Origin blog.csdn.net/weixin_43975128/article/details/104038946