通常情况下,脚本是这样编写的,以便在检查器中公开字段; 有没有办法改用属性呢?
// instead of this
public GameObject wrongBall;
// is there some way to do this (to trigger an event in the setter, for instance)
// and have it show up in the inspector window?
public GameObject WrongBallProperty
{
get;
set;
}