public void BeginExit() { //退出设置为false,否则下次进入不会调用begininit this.IsLoad = false; //1..退出时候 向win test2 发消息 var d = WinData.Create(); d.AddData("rotation", UnityEngine.Random.Range(-359, 359)); UIManager.Inst.SendMessage((int)WinEnum.Win_Test2, d); // Debug.Log("退出Test Screen 1"); }
public void BeginExit(Action <Exception> onExit) { //退出设置为false,否则下次进入不会调用begininit this.IsLoad = false; Destory(); onExit(null); //1..退出时候 向win test2 发消息 var d = WinData.Create(); d.AddData("rotation", UnityEngine.Random.Range(-359, 359)); UIMgr.Inst.SendMessage(WinEnum.Win_Test2, d); // Debug.Log("退出Test Screen 1"); }