public void PlayerLost(BoltEntity LosingPlayer) { AllPlayers.Remove(LosingPlayer); if (AllPlayers.Count == 1) { // player won! var name = AllPlayers[0].GetComponent <PlayerPersonalization>().GetName(); var evnt = GameEnded.Create(); evnt.WinnerName = name; evnt.Send(); } }