Unity2D入门2 public和private
private Rigidbody2D rb; private Animator Anim; void Start() { rb = GetComponent<Rigidbody2D>(); Anim = GetComponent<Animator>(); }私有在unity界面不显示,通...