diff --git a/Assets/Zion/Scripts/Adam/GameManager.cs b/Assets/Zion/Scripts/Adam/GameManager.cs index d9bceddb..9e2f1955 100644 --- a/Assets/Zion/Scripts/Adam/GameManager.cs +++ b/Assets/Zion/Scripts/Adam/GameManager.cs @@ -82,7 +82,6 @@ public class GameManager : MonoSingleton spt.transform.eulerAngles = blueSpawnPos.eulerAngles; spt.gameObject.SetActive(true); spt.GetComponent().cullingMask = ~(1 << 11); - //spt.GetComponent().cullingMask = ~(1 << 15); if (UIBootstrap.Instance.GetDeviceByName("探测雷达").device_count > 0) { for (int i = 0; i < UIBootstrap.Instance.GetDeviceByName("探测雷达").device_count; i++) @@ -139,7 +138,6 @@ public class GameManager : MonoSingleton if (GlobalFlag.isStartRehearsing) { spt.GetComponent().cullingMask = -1; - //spt.GetComponent().cullingMask = ~(1 << 15); } } if (GlobalFlag.currentUser.role_code == "03") @@ -147,7 +145,6 @@ public class GameManager : MonoSingleton Teacher.gameObject.SetActive(true); student.gameObject.SetActive(false); spt.GetComponent().cullingMask = -1; - //spt.GetComponent().cullingMask = ~(1 << 15); } if (GlobalFlag.currentUser.role_code == "02") { @@ -155,8 +152,8 @@ public class GameManager : MonoSingleton student.gameObject.SetActive(false); posture.gameObject.SetActive(true); spt.GetComponent().cullingMask = -1; - //spt.GetComponent().cullingMask = ~(1 << 15); } + spt.GetComponent().cullingMask &= ~(1 << 15); tenkokuModule.mainCamera = spt.transform; AddPlayers(spt); @@ -239,12 +236,12 @@ public class GameManager : MonoSingleton } else { - //spt.GetComponent().cullingMask = ~(1 << 15); spt.gameObject.transform.position = blueSpawnPos.position; spt.gameObject.transform.eulerAngles = blueSpawnPos.eulerAngles; } spt.gameObject.SetActive(true); spt.SetPlayerInfo(userId, data[2], ulong.Parse(data[3]), false); + spt.GetComponent().cullingMask &= ~(1 << 15); AddPlayers(spt); } break;