This commit is contained in:
parent
6206bec3f6
commit
b1c54e7f3f
|
@ -69,14 +69,6 @@ public class GameManager : MonoBehaviour
|
|||
spt.gameObject.transform.position = spawnPos.position;
|
||||
spt.gameObject.transform.eulerAngles = spawnPos.eulerAngles;
|
||||
spt.SetPlayerInfo(ulong.Parse(data[1]), data[2], ulong.Parse(data[3]), false);
|
||||
if (UIBootstrap.Instance.GetRoleByIDPracticeId(data[3]) == "0")
|
||||
{
|
||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 11);
|
||||
}
|
||||
else
|
||||
{
|
||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 12);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "offline":
|
||||
|
@ -100,14 +92,6 @@ public class GameManager : MonoBehaviour
|
|||
spt.SetPlayerInfo(ulong.Parse(userInfo[0]), userInfo[1], ulong.Parse(userInfo[2]), false);
|
||||
spt.transform.position = new Vector3(spawnPos.position.x + index * 0.5f, spawnPos.position.y, spawnPos.position.z + index * 0.5f);
|
||||
spt.transform.eulerAngles = spawnPos.eulerAngles;
|
||||
if (UIBootstrap.Instance.GetRoleByIDPracticeId(userInfo[2]) == "0")
|
||||
{
|
||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 11);
|
||||
}
|
||||
else
|
||||
{
|
||||
spt.GetComponent<Camera>().cullingMask = ~(1 << 12);
|
||||
}
|
||||
userIds.Add(ulong.Parse(userInfo[0]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue