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);
        }
예제 #4
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);
        }