// Use this for initialization //初始化 public void Init(string projectName, string serviceNumber) { GameObject.DontDestroyOnLoad(this.gameObject);//不被销毁 if (!checkNumber.IsCheck && !checkNumber.IsConnected) { checkNumber.Init(projectName, serviceNumber); checkNumber.ConnectService(); } }