1.獲得對象
btPlay = transform.Find ("btMenuPlay").GetComponent<Button> ();
2.添加事件, 個人習(xí)慣用代碼
btPlay.onClick.AddListener(onPlay);
1.獲得對象
btPlay = transform.Find ("btMenuPlay").GetComponent<Button> ();
2.添加事件, 個人習(xí)慣用代碼
btPlay.onClick.AddListener(onPlay);