加入房间 bug

This commit is contained in:
liuliang 2024-12-28 21:42:16 +08:00
parent 566285caa8
commit 9e5ec8812f
16 changed files with 137 additions and 99 deletions

View File

@ -84,7 +84,7 @@ public class GameRoomListPlayer
public string UserId { get; set; } // 用户ID
public int RoleId { get; set; } // 角色ID
public string RoleName { get; set; } // 角色名称
public int BirthAreaId { get; set; } // 出生地ID
//public int BirthAreaId { get; set; } // 出生地ID
public string BirthAreaName { get; set; } // 出生地名称
public int ChargeAreaId { get; set; } // 负责区域ID
public string ChargeAreaName { get; set; } // 负责区域名称

View File

@ -20,7 +20,7 @@ public class Alertwindow : MonoBehaviour
cancel=transform.Find("bg/downbg/GameObject3/Cancel").GetComponent<Button>();
sure.onClick.AddListener(OnSureBtn);
cancel.onClick.AddListener(OnCancelBtn);
peopleposition = GameObject.Find("peopleposition").gameObject;
peopleposition = GameObject.Find("HostCanvas/peopleposition").gameObject;
//获取所有子物体中的 Button 组件
nameImage = new List<GameObject>();
foreach (Transform child in peopleposition.transform)

View File

@ -8,15 +8,15 @@ public class Game : MonoBehaviour
public static bool isLoaded=false;
private void Awake()
{
if(isLoaded==true)
if (isLoaded == true)
{
Destroy(gameObject);
//Destroy(gameObject);
}
else
{
isLoaded = true;
DontDestroyOnLoad(gameObject);
uiManager=new UIManager();
//DontDestroyOnLoad(gameObject);
uiManager = new UIManager();
uiManager.Init();
}
}

View File

@ -22,6 +22,8 @@ public class Panel2 : MonoBehaviour
public int currentCameraIndex = -1;
public List<GameObject> target;//Ä¿±ê
public GameObject panel1_22;
public GameObject panel1_33;
// Start is called before the first frame update
void Start()
@ -122,8 +124,10 @@ public class Panel2 : MonoBehaviour
//godView.GetComponent<Camera>().orthographic = false;
SwitchToCamera(selectedIndex);//תÈëÊÓ½Ç
Game.uiManager.CloseUI("Panel1_2");
Game.uiManager.ShowUI<Image>("Panel1_3");
panel1_22.gameObject.SetActive(false);
panel1_33.gameObject.SetActive(true);
//Game.uiManager.CloseUI("Panel1_2");
//Game.uiManager.ShowUI<Image>("Panel1_3");
}
void EndBtn()

View File

@ -19,6 +19,8 @@ public class Panel3 : MonoBehaviour
private GameObject[] players;
private Vector3 startposition = new Vector3(6, 60, -25);
private Vector3 startrotation = new Vector3(90, 0, -90);
public GameObject panel1_22;
public GameObject panel1_33;
// Start is called before the first frame update
void Start()
{
@ -29,7 +31,7 @@ public class Panel3 : MonoBehaviour
dropdown=transform.Find("left/Dropdown").GetComponent<Dropdown>();
follow = transform.Find("left/Follow").GetComponent<Button>();
follow.onClick.AddListener(FollowBtn);
peopleposition = GameObject.Find("peopleposition").gameObject;
peopleposition = GameObject.Find("HostCanvas/peopleposition").gameObject;
peopleposition.SetActive(false);
godView=GameObject.Find("TopCamera").GetComponent<Camera>();
//godView.GetComponent<Camera>().orthographic = false;
@ -73,7 +75,7 @@ public class Panel3 : MonoBehaviour
// 切换到上帝视角
public void SwitchToGodView()
{
godView.GetComponent<Camera>().orthographic = true;
godView.GetComponent<Camera>().orthographic = false ;
isGodView = true;
currentCameraIndex = -1;
godView.transform.position = startposition;
@ -102,9 +104,12 @@ public class Panel3 : MonoBehaviour
peopleposition.gameObject.SetActive(true);
//返回上帝视角界面
SwitchToGodView();
// Camera.main.enabled = true;
Game.uiManager.ShowUI<Image>("Panel1_2");
Game.uiManager.CloseUI("Panel1_3");
Debug.LogError(1111111111111);
// Camera.main.enabled = true;
panel1_22.gameObject.SetActive(true);
//Game.uiManager.ShowUI<Image>("Panel1_2");
panel1_33.gameObject.SetActive(false);
//Game.uiManager.CloseUI("Panel1_3");
}
void OnClickOnlineBtn()
{

View File

@ -51,7 +51,7 @@ public class ReadRoom : MonoBehaviour
isadministrator=false;
}else
{
isadministrator = true; ;
isadministrator = true;
}
foreach(var item in response.Data)
{

View File

@ -24,7 +24,13 @@ public class RoomManager : MonoBehaviour
FetchRoomList();
}
}
private void Update()
{
if (!ReadRoom.instance.isadministrator)
{
FetchRoomList();
}
}
// 异步获取房间数据
private async void FetchRoomList()
{

View File

@ -18,7 +18,7 @@ public class Starthost : MonoBehaviour
private bool isRotating = false; // 默认旋转状态
private GameObject panel;
private Button posiBtn;//人员到位情况按钮
private Button start;//¿ªÊ¼ÑÝÁ·°´Å¥
public Button start;//¿ªÊ¼ÑÝÁ·°´Å¥
public bool isReady;//在线玩家是否准备
public bool isSatisfy;//人员是否满足
public bool isStart=false;//演习是否开始
@ -35,6 +35,7 @@ public class Starthost : MonoBehaviour
public Alertwindow alertwindow;
private bool isButtonClicked = false; // 监听的变量
private GameObject peopleposition;//人员的位置信息
public GameObject panel1_22;
//非主持人的画面
public bool ishost=false;
public Button ready;
@ -53,7 +54,7 @@ public class Starthost : MonoBehaviour
private GameObject right;//右边图标
private void Awake()
{
DontDestroyOnLoad(this.gameObject);
}
void Start()
{
@ -266,12 +267,13 @@ public class Starthost : MonoBehaviour
// 对话完成,清理界面
walkieTalkieIcon.SetActive(false);
dialogueText.text = ""; // 清空文字
Debug.LogError(1111111111111);
peopleposition.SetActive(true);
panel.SetActive(false);
right.SetActive(true);
Game.uiManager.ShowUI<Image>("Panel1_2");
panel1_22.gameObject.SetActive(true);
//Game.uiManager.ShowUI<Image>("Panel1_2");
}
async Task DisplayTextAsync(string line)

View File

@ -19,15 +19,17 @@ public class UIManager
//显示
public T ShowUI<T>(string uiName) where T : Component
{
Debug.LogError(1111111111111);
T ui = Find<T>(uiName);
if (ui == null)
{
//集合中没有 需要从Resources/UI文件夹中加载
GameObject obj = Object.Instantiate(Resources.Load("gsjUI/" + uiName), canvasTf) as GameObject;
obj.transform.SetParent(canvasTf);
//改名字
obj.name = uiName;
Debug.LogError(1111111111111);
//添加需要的脚本
//ui = obj.AddComponent<T>();
@ -36,6 +38,7 @@ public class UIManager
}
else
{
Debug.LogError(1111111111111);
//显示
ui.gameObject.SetActive(true);
}

View File

@ -5651,7 +5651,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 27
m_RootOrder: 26
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &159663861
PrefabInstance:
@ -7403,7 +7403,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 42
m_RootOrder: 41
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &295391225
MeshCollider:
@ -8109,7 +8109,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 20
m_RootOrder: 42
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &339719735
MeshCollider:
@ -8611,7 +8611,7 @@ Transform:
- {fileID: 272025130}
- {fileID: 1600741273}
m_Father: {fileID: 0}
m_RootOrder: 36
m_RootOrder: 35
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &382802813
BoxCollider:
@ -10011,52 +10011,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 424166, guid: dd642d046532d6449b5c8884a203ada2, type: 3}
m_PrefabInstance: {fileID: 436677384}
m_PrefabAsset: {fileID: 0}
--- !u!1 &437306171
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 437306173}
- component: {fileID: 437306172}
m_Layer: 0
m_Name: BurstCollisionWorld
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &437306172
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 437306171}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f1a161c4294214a4fbcb7e9e94800494, type: 3}
m_Name:
m_EditorClassIdentifier:
cellSpans:
m_AlignBytes: 16
--- !u!4 &437306173
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 437306171}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 43
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &437592029
GameObject:
m_ObjectHideFlags: 0
@ -10557,7 +10511,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 33
m_RootOrder: 32
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &479940076
MonoBehaviour:
@ -11248,7 +11202,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 41
m_RootOrder: 40
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &526829806
GameObject:
@ -11279,7 +11233,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 22
m_RootOrder: 21
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &530412951
GameObject:
@ -12010,7 +11964,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 26
m_RootOrder: 25
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &583497863
PrefabInstance:
@ -12906,6 +12860,52 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2fafe2cfe61f6974895a912c3755e8f1, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &639814359
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 639814361}
- component: {fileID: 639814360}
m_Layer: 0
m_Name: BurstCollisionWorld
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &639814360
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 639814359}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f1a161c4294214a4fbcb7e9e94800494, type: 3}
m_Name:
m_EditorClassIdentifier:
cellSpans:
m_AlignBytes: 16
--- !u!4 &639814361
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 639814359}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 43
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &639843208
PrefabInstance:
m_ObjectHideFlags: 0
@ -13118,7 +13118,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 30
m_RootOrder: 29
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &673038100
PrefabInstance:
@ -13846,7 +13846,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 3077635299444999931, guid: 940be89243a038b4090a77556e45a06d, type: 3}
propertyPath: m_IsActive
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3649662722171167503, guid: 940be89243a038b4090a77556e45a06d, type: 3}
propertyPath: m_SizeDelta.y
@ -14331,7 +14331,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 37
m_RootOrder: 36
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &702577176
MonoBehaviour:
@ -14881,7 +14881,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 7104765112034956015, guid: 6815aad4cd6cb734a9d63a7210677333, type: 3}
propertyPath: m_RootOrder
value: 21
value: 20
objectReference: {fileID: 0}
- target: {fileID: 7104765112034956015, guid: 6815aad4cd6cb734a9d63a7210677333, type: 3}
propertyPath: m_LocalPosition.x
@ -15745,7 +15745,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 32
m_RootOrder: 31
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &810501282
MonoBehaviour:
@ -18230,7 +18230,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 24
m_RootOrder: 23
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &996888830
MonoBehaviour:
@ -22644,7 +22644,7 @@ Transform:
- {fileID: 496425325}
- {fileID: 1670656697}
m_Father: {fileID: 0}
m_RootOrder: 38
m_RootOrder: 37
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1298227765
GameObject:
@ -25181,7 +25181,7 @@ Transform:
- {fileID: 1882199187}
- {fileID: 119116319}
m_Father: {fileID: 0}
m_RootOrder: 34
m_RootOrder: 33
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &1453694928
MeshCollider:
@ -25589,7 +25589,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 31
m_RootOrder: 30
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1474431325
GameObject:
@ -25770,7 +25770,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 29
m_RootOrder: 28
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1481704192
PrefabInstance:
@ -26952,7 +26952,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 35
m_RootOrder: 34
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1526740603
MonoBehaviour:
@ -28832,7 +28832,7 @@ Transform:
- {fileID: 58543477}
- {fileID: 712846463}
m_Father: {fileID: 0}
m_RootOrder: 40
m_RootOrder: 39
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1670656696
GameObject:
@ -32297,7 +32297,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 28
m_RootOrder: 27
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1912094932
GameObject:
@ -34279,6 +34279,10 @@ PrefabInstance:
propertyPath: m_Name
value: Command_End
objectReference: {fileID: 0}
- target: {fileID: 1986279549173157415, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1986279549232645831, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
propertyPath: m_IsActive
value: 0
@ -34623,7 +34627,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 25
m_RootOrder: 24
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &2069562217
MeshCollider:
@ -41061,7 +41065,7 @@ Transform:
m_Children:
- {fileID: 2057924365034160257}
m_Father: {fileID: 0}
m_RootOrder: 39
m_RootOrder: 38
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2057924365745864529
MonoBehaviour:
@ -44941,7 +44945,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2907630901887348954, guid: cb61a92f105ea18418e946bf54862340, type: 3}
propertyPath: m_RootOrder
value: 23
value: 22
objectReference: {fileID: 0}
- target: {fileID: 2907630901887348954, guid: cb61a92f105ea18418e946bf54862340, type: 3}
propertyPath: m_LocalPosition.x
@ -46384,7 +46388,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4163391439018457500}
m_Enabled: 0
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 898562fd62122f647a41732624825d58, type: 3}
m_Name:
@ -49455,10 +49459,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4a817172e097c9b45abdfeebadcd984f, type: 3}
m_Name:
m_EditorClassIdentifier:
godView: {fileID: 0}
godView: {fileID: 4163391439018457569}
playerCameras: []
currentCameraIndex: -1
target: []
panel1_22: {fileID: 5640692781825168938}
panel1_33: {fileID: 5640692781859853966}
--- !u!224 &5640692781825168937
RectTransform:
m_ObjectHideFlags: 0
@ -49902,6 +49908,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
playertarget: []
panel1_22: {fileID: 5640692781825168938}
panel1_33: {fileID: 5640692781859853966}
--- !u!224 &5640692781859853965
RectTransform:
m_ObjectHideFlags: 0
@ -60886,12 +60894,14 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7408bdf5269d1784085e044facb8c695, type: 3}
m_Name:
m_EditorClassIdentifier:
start: {fileID: 5640692781816547268}
isReady: 1
isSatisfy: 1
isStart: 1
moveDuration: 2
scaleDuration: 2
alertwindow: {fileID: 0}
panel1_22: {fileID: 5640692781825168938}
ishost: 1
ready: {fileID: 0}
walkieTalkieIcon: {fileID: 5640692782032870078}
@ -65248,12 +65258,14 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7408bdf5269d1784085e044facb8c695, type: 3}
m_Name:
m_EditorClassIdentifier:
start: {fileID: 0}
isReady: 0
isSatisfy: 0
isStart: 0
moveDuration: 2
scaleDuration: 2
alertwindow: {fileID: 0}
panel1_22: {fileID: 0}
ishost: 0
ready: {fileID: 0}
walkieTalkieIcon: {fileID: 0}

View File

@ -865,6 +865,8 @@ MonoBehaviour:
js: {fileID: 7695717545649794843}
isenter: 0
isadministrator: 0
iszongzhihui: 0
RoleId: 0
--- !u!114 &252707977
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -24,8 +24,11 @@ public class PlayerTask : MonoBehaviour
int id = collider.GetComponent<AreaID>().Id;
Debug.Log(1111111111111111111);
Debug.Log(id);
TaskPanel.instance.displaytask(id);
ZZZPlayer.CSZS.SetPlayerID(id.ToString());
//if(TaskPanel.instance.enabled)
//{
// TaskPanel.instance.displaytask(id);
//}
//ZZZPlayer.CSZS.SetPlayerID(id.ToString());
}
}

View File

@ -631,11 +631,12 @@ public class Panel : Base
{
isDutySelected = true; // Ñ¡ÔñÁËÖ°Ôð
isSceneSelected = true;
selectedInfo.scene = "0";
}
else
{
isDutySelected = true;
isSceneSelected = false;
isSceneSelected = true;
}
dutyId = item.dutyId;
selectedInfo.duty = duty;

View File

@ -61,7 +61,7 @@ public class DatePanel : MonoBehaviour
panel.UploadData();
Debug.LogError("+++++++++");
createTemplateInterface.createTemplate(dataText.text);
SceneManager.LoadScene(4);
SceneManager.LoadScene("yhj");
}
//ÄŁ°ĺĂć°ĺȡś¨°´ĹĽ

View File

@ -45,7 +45,7 @@ public class LoginPanel : Base
grantType = "password",
clientId = "e5cd7e4891bf95d1d19206ce24a7b32e",
userType = "company_user",
username = "ZF16c788632",
username = "13699802230",
password = "YYL5371!"
};
image.gameObject.SetActive (true);
@ -65,7 +65,7 @@ public class LoginPanel : Base
//如果是管理员账号就跳预定演练
//if (loginBody.userType == "company_user")
if(loginBody.username == id.text && loginBody.password == pwd.text)
if(GlobalData.ServerData.data.isCreater=="Y")
{
Debug.LogError(11);
ReadRoom.instance.isadministrator=true;

View File

@ -33,6 +33,6 @@ public class LoadScene : MonoBehaviour
public void OnClickNextBtn()
{
SceneManager.LoadScene(3);
SceneManager.LoadScene("Schedule_03");
}
}