You are right, this is a error with the code, for fix replace this function: SpawnSelectedPlayer(bl_PlayerSelectorInfo info,Team t_team) (bl_GameManager.cs 166 - 200)
with this:
Code: Select all
#if PSELECTOR
/// <summary>
///
/// </summary>
public void SpawnSelectedPlayer(bl_PlayerSelectorInfo info,Team t_team)
{
Vector3 pos;
Quaternion rot;
if (t_team == Team.Recon)
{
GetSpawn(ReconSpawnPoint.ToArray(), out pos, out rot);
OurPlayer = PhotonNetwork.Instantiate(info.Prefab.name, pos, rot, 0);
}
else if (t_team == Team.Delta)
{
GetSpawn(DeltaSpawnPoint.ToArray(), out pos, out rot);
OurPlayer = PhotonNetwork.Instantiate(info.Prefab.name, pos, rot, 0);
}
else
{
GetSpawn(AllSpawnPoints.ToArray(), out pos, out rot);
OurPlayer = PhotonNetwork.Instantiate(info.Prefab.name, pos, rot, 0);
}
this.GetComponent<bl_ChatRoom>().Refresh();
m_RoomCamera.gameObject.SetActive(false);
StartCoroutine(bl_RoomMenu.FadeOut(1));
bl_UtilityHelper.LockCursor(true);
Joined = true;
EnterInGamePlay = true;
bl_EventHandler.PlayerLocalSpawnEvent();
bl_UCrosshair.Instance.Show(true);
}
#endif