- Home /
public PlayerView pv { get { return _Game.playerViews[id]; } }
IndexOutOfRangeException: Array index is out of range. Player.get_pv () (at Assets/Scripts/Main/Player.cs:35) Player.get_bot () (at Assets/Scripts/Main/Player.cs:659) Player.Awake () (at Assets/Scripts/Main/Player.cs:77) UnityEngine.Network:Instantiate(Object, Vector3, Quaternion, Int32) Game:InstanciatePlayer() (at Assets/Scripts/Main/Game.cs:289) Game:CreatePlayer() (at Assets/Scripts/Main/Game.cs:280) Game:OnConnected() (at Assets/Scripts/Main/Game.cs:317) Game:Awake() (at Assets/Scripts/Main/Game.cs:60)
Console error^^^^
Line35:
public PlayerView pv { get { return _Game.playerViews[id]; } }
Line659:
public bool bot { get { return pv.bot; } }
Line77: CallRPC(SetBot, RPCMode.All, bot);
Game.cs Line289: Network.Instantiate(PlayerPrefab, vector3, Quaternion.identity, (int)group.Player);
Line280: InstanciatePlayer();
Line317: CreatePlayer();
Line60 : OnConnected();