This commit is contained in:
huyulong 2024-12-28 22:54:08 +08:00
commit a9403974f0
16 changed files with 136 additions and 52 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5651,7 +5651,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 27 m_RootOrder: 26
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &159663861 --- !u!1001 &159663861
PrefabInstance: PrefabInstance:
@ -7403,7 +7403,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 42 m_RootOrder: 41
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &295391225 --- !u!64 &295391225
MeshCollider: MeshCollider:
@ -8109,7 +8109,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 20 m_RootOrder: 42
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &339719735 --- !u!64 &339719735
MeshCollider: MeshCollider:
@ -8606,7 +8606,7 @@ Transform:
- {fileID: 272025130} - {fileID: 272025130}
- {fileID: 1600741273} - {fileID: 1600741273}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 36 m_RootOrder: 35
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &382802813 --- !u!65 &382802813
BoxCollider: BoxCollider:
@ -10506,7 +10506,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 33 m_RootOrder: 32
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &479940076 --- !u!114 &479940076
MonoBehaviour: MonoBehaviour:
@ -11197,7 +11197,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 41 m_RootOrder: 40
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &526829806 --- !u!1 &526829806
GameObject: GameObject:
@ -11228,7 +11228,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 22 m_RootOrder: 21
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &530412951 --- !u!1 &530412951
GameObject: GameObject:
@ -11959,7 +11959,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 26 m_RootOrder: 25
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &583497863 --- !u!1001 &583497863
PrefabInstance: PrefabInstance:
@ -12855,6 +12855,52 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2fafe2cfe61f6974895a912c3755e8f1, type: 3} m_Script: {fileID: 11500000, guid: 2fafe2cfe61f6974895a912c3755e8f1, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: 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 --- !u!1001 &639843208
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -13067,7 +13113,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 30 m_RootOrder: 29
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &673038100 --- !u!1001 &673038100
PrefabInstance: PrefabInstance:
@ -14280,7 +14326,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 37 m_RootOrder: 36
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &702577176 --- !u!114 &702577176
MonoBehaviour: MonoBehaviour:
@ -14830,7 +14876,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7104765112034956015, guid: 6815aad4cd6cb734a9d63a7210677333, type: 3} - target: {fileID: 7104765112034956015, guid: 6815aad4cd6cb734a9d63a7210677333, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 21 value: 20
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7104765112034956015, guid: 6815aad4cd6cb734a9d63a7210677333, type: 3} - target: {fileID: 7104765112034956015, guid: 6815aad4cd6cb734a9d63a7210677333, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -15740,7 +15786,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 32 m_RootOrder: 31
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &810501282 --- !u!114 &810501282
MonoBehaviour: MonoBehaviour:
@ -18236,7 +18282,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 24 m_RootOrder: 23
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &996888830 --- !u!114 &996888830
MonoBehaviour: MonoBehaviour:
@ -22675,7 +22721,7 @@ Transform:
- {fileID: 496425325} - {fileID: 496425325}
- {fileID: 1670656697} - {fileID: 1670656697}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 38 m_RootOrder: 37
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1298227765 --- !u!1 &1298227765
GameObject: GameObject:
@ -25258,7 +25304,7 @@ Transform:
- {fileID: 1882199187} - {fileID: 1882199187}
- {fileID: 119116319} - {fileID: 119116319}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 34 m_RootOrder: 33
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &1453694928 --- !u!64 &1453694928
MeshCollider: MeshCollider:
@ -25666,7 +25712,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 31 m_RootOrder: 30
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1474431325 --- !u!1 &1474431325
GameObject: GameObject:
@ -25847,7 +25893,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 29 m_RootOrder: 28
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1481704192 --- !u!1001 &1481704192
PrefabInstance: PrefabInstance:
@ -27029,7 +27075,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 35 m_RootOrder: 34
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1526740604 --- !u!114 &1526740604
MonoBehaviour: MonoBehaviour:
@ -28909,7 +28955,7 @@ Transform:
- {fileID: 58543477} - {fileID: 58543477}
- {fileID: 712846463} - {fileID: 712846463}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 40 m_RootOrder: 39
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1670656696 --- !u!1 &1670656696
GameObject: GameObject:
@ -32374,7 +32420,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 28 m_RootOrder: 27
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1912094932 --- !u!1 &1912094932
GameObject: GameObject:
@ -34392,6 +34438,10 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: Command_End value: Command_End
objectReference: {fileID: 0} 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} - target: {fileID: 1986279549232645831, guid: 807d6c3842cc1714caf2b4497e4daed7, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 0 value: 0
@ -34829,7 +34879,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 25 m_RootOrder: 24
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &2069562217 --- !u!64 &2069562217
MeshCollider: MeshCollider:
@ -41267,7 +41317,7 @@ Transform:
m_Children: m_Children:
- {fileID: 2057924365034160257} - {fileID: 2057924365034160257}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 39 m_RootOrder: 38
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2057924365745864529 --- !u!114 &2057924365745864529
MonoBehaviour: MonoBehaviour:
@ -45147,7 +45197,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2907630901887348954, guid: cb61a92f105ea18418e946bf54862340, type: 3} - target: {fileID: 2907630901887348954, guid: cb61a92f105ea18418e946bf54862340, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 23 value: 22
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2907630901887348954, guid: cb61a92f105ea18418e946bf54862340, type: 3} - target: {fileID: 2907630901887348954, guid: cb61a92f105ea18418e946bf54862340, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -46590,7 +46640,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4163391439018457500} m_GameObject: {fileID: 4163391439018457500}
m_Enabled: 0 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 898562fd62122f647a41732624825d58, type: 3} m_Script: {fileID: 11500000, guid: 898562fd62122f647a41732624825d58, type: 3}
m_Name: m_Name:
@ -49661,10 +49711,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4a817172e097c9b45abdfeebadcd984f, type: 3} m_Script: {fileID: 11500000, guid: 4a817172e097c9b45abdfeebadcd984f, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
godView: {fileID: 0} godView: {fileID: 4163391439018457569}
playerCameras: [] playerCameras: []
currentCameraIndex: -1 currentCameraIndex: -1
target: [] target: []
panel1_22: {fileID: 5640692781825168938}
panel1_33: {fileID: 5640692781859853966}
--- !u!224 &5640692781825168937 --- !u!224 &5640692781825168937
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -50108,6 +50160,8 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
playertarget: [] playertarget: []
panel1_22: {fileID: 5640692781825168938}
panel1_33: {fileID: 5640692781859853966}
--- !u!224 &5640692781859853965 --- !u!224 &5640692781859853965
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -61092,12 +61146,14 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7408bdf5269d1784085e044facb8c695, type: 3} m_Script: {fileID: 11500000, guid: 7408bdf5269d1784085e044facb8c695, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
start: {fileID: 5640692781816547268}
isReady: 1 isReady: 1
isSatisfy: 1 isSatisfy: 1
isStart: 1 isStart: 1
moveDuration: 2 moveDuration: 2
scaleDuration: 2 scaleDuration: 2
alertwindow: {fileID: 0} alertwindow: {fileID: 0}
panel1_22: {fileID: 5640692781825168938}
ishost: 1 ishost: 1
ready: {fileID: 0} ready: {fileID: 0}
walkieTalkieIcon: {fileID: 5640692782032870078} walkieTalkieIcon: {fileID: 5640692782032870078}
@ -65454,12 +65510,14 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7408bdf5269d1784085e044facb8c695, type: 3} m_Script: {fileID: 11500000, guid: 7408bdf5269d1784085e044facb8c695, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
start: {fileID: 0}
isReady: 0 isReady: 0
isSatisfy: 0 isSatisfy: 0
isStart: 0 isStart: 0
moveDuration: 2 moveDuration: 2
scaleDuration: 2 scaleDuration: 2
alertwindow: {fileID: 0} alertwindow: {fileID: 0}
panel1_22: {fileID: 0}
ishost: 0 ishost: 0
ready: {fileID: 0} ready: {fileID: 0}
walkieTalkieIcon: {fileID: 0} walkieTalkieIcon: {fileID: 0}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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