/// <summary> /// To be called when a player has collided with the bottom of the map. /// </summary> /// <param name="p">The player that collided</param> public void PlayerLost(GameObject p) { Debug.Log("A player lost"); _lostList.Push(p.GetComponent <PhotonView>().owner.NickName); if (_lostList.Count >= _playerCount) { string[] arr = _lostList.ToArray(); foreach (string a in arr) { Debug.Log(a); } NetworkEventHandlers.Broadcast(Constants.EVENT_IDS.END_GAME, arr); _network.EndGame(arr); } }