public void OnPlayerJoinedEvt(object sender, PlayerJoinedArgs ga) { bool isLocal = ga.player.PeerId == appl.LocalPeer.PeerId; logger.Info($"{(ModeName())} - OnPlayerJoinedEvt() - {(isLocal?"Local":"Remote")} Member Joined: {ga.player.Name}, ID: {ga.player.PeerId}"); if (ga.player.PeerId == appl.LocalPeer.PeerId) { game.RespawnPlayerEvt += OnRespawnPlayerEvt; //_SetState(kWaitingForMembers); _SetState(kPlaying); } }
public void OnMemberJoinedGroupEvt(object sender, PlayerJoinedArgs ga) { game.RespawnPlayerEvt += OnRespawnPlayerEvt; gameJoined = true; }
public void OnPlayerJoinedEvt(object sender, PlayerJoinedArgs ga) { _CurrentState = ModeState.Playing; localPlayerJoined = true; logger.Info("Player joined!!!"); }