public override void SimulateController() { ILobbyCommandInput input = LobbyCommand.Create(); input.Name = playerName; input.Color = playerColor; input.Ready = ready; entity.QueueInput(input); }
public override void SimulateController() { if (BoltNetwork.Frame % 5 != 0) { return; } var input = LobbyCommand.Create(); input.Username = _username; input.Team = _team.ToString(); input.Entity = entity; entity.QueueInput(input); }
public override void SimulateController() { ILobbyCommandInput input = LobbyCommand.Create(); if (PlayerPrefs.HasKey("PlayerName")) { playerName = PlayerPrefs.GetString("PlayerName"); } input.Name = playerName; input.Color = playerColor; input.Ready = ready; entity.QueueInput(input); }
public override void ExecuteCommand(Command command, bool resetState) { if (!entity.isOwner) { return; } if (!resetState && command.IsFirstExecution) { LobbyCommand lobbyCommand = command as LobbyCommand; state.Name = lobbyCommand.Input.Name; state.Color = lobbyCommand.Input.Color; state.Ready = lobbyCommand.Input.Ready; } }
public override void SimulateController() { // Update every 5 frames if (BoltNetwork.Frame % 5 != 0) { return; } var input = LobbyCommand.Create(); input.Name = playerName; input.Color = playerColor; input.Ready = ready; entity.QueueInput(input); }
public void OnLobbyCommand(LobbyCommandPacket command) { LobbyCommand?.Invoke(this, new LobbyCommandEventArgs(command)); }
static void PushLobbyCommand(LobbyCommand command, string endpoint) { }