public override void SimulateController()
        {
            ILobbyCommandInput input = LobbyCommand.Create();

            input.Name  = playerName;
            input.Color = playerColor;
            input.Ready = ready;

            entity.QueueInput(input);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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;
            }
        }
Пример #5
0
        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);
        }
Пример #6
0
 public void OnLobbyCommand(LobbyCommandPacket command)
 {
     LobbyCommand?.Invoke(this, new LobbyCommandEventArgs(command));
 }
Пример #7
0
 static void PushLobbyCommand(LobbyCommand command, string endpoint)
 {
 }