212
This commit is contained in:
parent
4a171571f3
commit
b23c788ecd
|
@ -82,7 +82,6 @@ public class GameManager : MonoSingleton<GameManager>
|
|||
spt.transform.eulerAngles = blueSpawnPos.eulerAngles;
|
||||
spt.gameObject.SetActive(true);
|
||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 11);
|
||||
//spt.GetComponent<Camera>().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<GameManager>
|
|||
if (GlobalFlag.isStartRehearsing)
|
||||
{
|
||||
spt.GetComponent<Camera>().cullingMask = -1;
|
||||
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||
}
|
||||
}
|
||||
if (GlobalFlag.currentUser.role_code == "03")
|
||||
|
@ -147,7 +145,6 @@ public class GameManager : MonoSingleton<GameManager>
|
|||
Teacher.gameObject.SetActive(true);
|
||||
student.gameObject.SetActive(false);
|
||||
spt.GetComponent<Camera>().cullingMask = -1;
|
||||
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||
}
|
||||
if (GlobalFlag.currentUser.role_code == "02")
|
||||
{
|
||||
|
@ -155,8 +152,8 @@ public class GameManager : MonoSingleton<GameManager>
|
|||
student.gameObject.SetActive(false);
|
||||
posture.gameObject.SetActive(true);
|
||||
spt.GetComponent<Camera>().cullingMask = -1;
|
||||
//spt.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||
}
|
||||
spt.GetComponent<Camera>().cullingMask &= ~(1 << 15);
|
||||
|
||||
tenkokuModule.mainCamera = spt.transform;
|
||||
AddPlayers(spt);
|
||||
|
@ -239,12 +236,12 @@ public class GameManager : MonoSingleton<GameManager>
|
|||
}
|
||||
else
|
||||
{
|
||||
//spt.GetComponent<Camera>().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<Camera>().cullingMask &= ~(1 << 15);
|
||||
AddPlayers(spt);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue