Сценарии обычно пишутся так, что публичные Fields выставлены в инспекторе; Есть ли способ использовать свойства < /em> вместо? < /p>
// 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;
}
Подробнее здесь: https://stackoverflow.com/questions/405 ... tor-window