1212
This commit is contained in:
commit
598e00c0b5
|
@ -13,6 +13,7 @@ public class GameMain : MonoBehaviour {
|
||||||
|
|
||||||
public static bool model =false;
|
public static bool model =false;
|
||||||
public static bool tiao =true;
|
public static bool tiao =true;
|
||||||
|
public static bool visit = false;
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
GameObject.Find("UIRoot1").SetActive(false);
|
GameObject.Find("UIRoot1").SetActive(false);
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class Judgmentstate : MonoBehaviour
|
||||||
fanhui1.onClick.AddListener(() =>
|
fanhui1.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
GameMain.tiao = false;
|
GameMain.tiao = false;
|
||||||
|
GameMain.visit = true;
|
||||||
//SceneManager.LoadScene("SampleScene");
|
//SceneManager.LoadScene("SampleScene");
|
||||||
OnLeaveRoom();
|
OnLeaveRoom();
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,7 +8,7 @@ using XFrame.Core.UI;
|
||||||
|
|
||||||
public class Main_interface_Panel : XUIPanel
|
public class Main_interface_Panel : XUIPanel
|
||||||
{
|
{
|
||||||
public Button fanhui_btn;//返回初始界面
|
public static Button fanhui_btn;//返回初始界面
|
||||||
public Button train;
|
public Button train;
|
||||||
public Button replay;
|
public Button replay;
|
||||||
public Button appQuet;
|
public Button appQuet;
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class Taskpanel : MonoBehaviour
|
||||||
fanhui.onClick.AddListener(() =>
|
fanhui.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
GameMain.tiao = false;
|
GameMain.tiao = false;
|
||||||
|
GameMain.visit = true;
|
||||||
OnLeaveRoom();
|
OnLeaveRoom();
|
||||||
});
|
});
|
||||||
two_dimensional.onClick.AddListener(() =>
|
two_dimensional.onClick.AddListener(() =>
|
||||||
|
|
Loading…
Reference in New Issue