昨天它运行良好,但是今天当我打开一个单元并进行构建时,onClick.AddListener不在Android中工作,但在Unity Editor中工作。
void Start(){
instance = this;
guestBtn.onClick.AddListener (GuestBtnFun);
}
public void GuestBtnFun()
{
guestBackBtn.SetActive (true);
pic.gameObject.SetActive (true);
nameText.gameObject.SetActive (true);
shareBtn.gameObject.SetActive (true);
if (!GameSaver.instance.isTutorialShow)
tutorialPanel.SetActive (true);
}