This commit is contained in:
parent
af6c663b98
commit
a4392b7793
|
@ -1 +1 @@
|
||||||
192.168.1.5:48888
|
127.0.0.1:48888
|
|
@ -1 +1 @@
|
||||||
192.168.1.5
|
127.0.0.1
|
|
@ -46,14 +46,14 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
spt.SetPlayerInfo(ulong.Parse(GlobalFlag.currentUser.user_id), GlobalFlag.currentUser.login_name, ulong.Parse(GlobalFlag.roomID), true);
|
spt.SetPlayerInfo(ulong.Parse(GlobalFlag.currentUser.user_id), GlobalFlag.currentUser.login_name, ulong.Parse(GlobalFlag.roomID), true);
|
||||||
currentSpt = spt;
|
currentSpt = spt;
|
||||||
ToolsBootstrap.Instance.SetCameraInfo(spt);
|
ToolsBootstrap.Instance.SetCameraInfo(spt);
|
||||||
//0 red 1 blue
|
//0 red layer ==11 , 1 blue layer ==12
|
||||||
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) == "0")
|
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) == "0")
|
||||||
{
|
{
|
||||||
spt.transform.position = redSpawnPos.position;
|
spt.transform.position = redSpawnPos.position;
|
||||||
spt.transform.eulerAngles = redSpawnPos.eulerAngles;
|
spt.transform.eulerAngles = redSpawnPos.eulerAngles;
|
||||||
spt.gameObject.SetActive(true);
|
spt.gameObject.SetActive(true);
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 12);
|
spt.GetComponent<Camera>().cullingMask = ~(1 << 12);
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
AdamThinkDevicesData.DataItem diTemp = UIBootstrap.Instance.GetDeviceByName("蜂群无人机");
|
AdamThinkDevicesData.DataItem diTemp = UIBootstrap.Instance.GetDeviceByName("蜂群无人机");
|
||||||
if (diTemp.device_count > 0)
|
if (diTemp.device_count > 0)
|
||||||
{
|
{
|
||||||
|
@ -82,7 +82,7 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
spt.transform.eulerAngles = blueSpawnPos.eulerAngles;
|
spt.transform.eulerAngles = blueSpawnPos.eulerAngles;
|
||||||
spt.gameObject.SetActive(true);
|
spt.gameObject.SetActive(true);
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 11);
|
spt.GetComponent<Camera>().cullingMask = ~(1 << 11);
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
if (UIBootstrap.Instance.GetDeviceByName("探测雷达").device_count > 0)
|
if (UIBootstrap.Instance.GetDeviceByName("探测雷达").device_count > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < UIBootstrap.Instance.GetDeviceByName("探测雷达").device_count; i++)
|
for (int i = 0; i < UIBootstrap.Instance.GetDeviceByName("探测雷达").device_count; i++)
|
||||||
|
@ -139,7 +139,7 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
if (GlobalFlag.isStartRehearsing)
|
if (GlobalFlag.isStartRehearsing)
|
||||||
{
|
{
|
||||||
spt.GetComponent<Camera>().cullingMask = -1;
|
spt.GetComponent<Camera>().cullingMask = -1;
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (GlobalFlag.currentUser.role_code == "03")
|
if (GlobalFlag.currentUser.role_code == "03")
|
||||||
|
@ -147,7 +147,7 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
Teacher.gameObject.SetActive(true);
|
Teacher.gameObject.SetActive(true);
|
||||||
student.gameObject.SetActive(false);
|
student.gameObject.SetActive(false);
|
||||||
spt.GetComponent<Camera>().cullingMask = -1;
|
spt.GetComponent<Camera>().cullingMask = -1;
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
}
|
}
|
||||||
if (GlobalFlag.currentUser.role_code == "02")
|
if (GlobalFlag.currentUser.role_code == "02")
|
||||||
{
|
{
|
||||||
|
@ -155,7 +155,7 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
student.gameObject.SetActive(false);
|
student.gameObject.SetActive(false);
|
||||||
posture.gameObject.SetActive(true);
|
posture.gameObject.SetActive(true);
|
||||||
spt.GetComponent<Camera>().cullingMask = -1;
|
spt.GetComponent<Camera>().cullingMask = -1;
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
}
|
}
|
||||||
|
|
||||||
tenkokuModule.mainCamera = spt.transform;
|
tenkokuModule.mainCamera = spt.transform;
|
||||||
|
@ -229,17 +229,17 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
if (!userIds.Contains(userId))
|
if (!userIds.Contains(userId))
|
||||||
{
|
{
|
||||||
SyncPlayerTransform spt = Instantiate(playerTransformPrefab);
|
SyncPlayerTransform spt = Instantiate(playerTransformPrefab);
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
//0 red 1 blue
|
//0 red 1 blue
|
||||||
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) == "0")
|
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) == "0")
|
||||||
{
|
{
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
spt.gameObject.transform.position = redSpawnPos.position;
|
spt.gameObject.transform.position = redSpawnPos.position;
|
||||||
spt.gameObject.transform.eulerAngles = redSpawnPos.eulerAngles;
|
spt.gameObject.transform.eulerAngles = redSpawnPos.eulerAngles;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||||
spt.gameObject.transform.position = blueSpawnPos.position;
|
spt.gameObject.transform.position = blueSpawnPos.position;
|
||||||
spt.gameObject.transform.eulerAngles = blueSpawnPos.eulerAngles;
|
spt.gameObject.transform.eulerAngles = blueSpawnPos.eulerAngles;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue