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 .
Assignment on OK in the code.
Written in script logic unity is not right Haoshi
Guess you like
Origin blog.csdn.net/weixin_43975128/article/details/104038946
Ranking