Making a Multiplayer FPS in Unity (E26. Sending Data) - uNet Tutorial

preview_player
Показать описание
In this video we finish our User Account System by storing player stats on the server. This allows us to keep track of each players total kills and deaths.

····················································································

Learn how to make a multiplayer first-person shooter in Unity. This series teaches the very cool Unity Networking system (uNet). All code is written entirely in C#.

Difficulty: Intermediate.

····················································································

········································­­·······································­·­····

► All content by Brackeys is 100% free. We believe that education should be available for everyone.

········································­­·······································­·­····

♪ Intro Music by Brackeys
♪ Baby Plays Electro Games
Рекомендации по теме
Комментарии
Автор

You are such an inspiration, keep up the good work because you are really helping people such as myself learn so much about Unity and the different aspects of games, Thank you

callingproxy
Автор

mouse should disapear ingame, no? would be pretty cool to see this in one of the next videos :) apart from that, you're amazing!

belgianwizard
Автор

Please Add sound for the gun I guess it is not very hard but I'm broken with computer languages :( I did all of your parts and they work fine until this part but still can't learn to program with myself! :/
But keep going with the awesome work Brackeys and Take care!

LightArtsOfficial
Автор

Hm.. in the latest Unity Multiplayer seem like RPC has been obsolete. Is there any other way to send variable from client to server. Could not find any reference online, most of it is about using RPC to pass var. hmm....

sapphireyue
Автор

Hello Brackeys, super video :D
can you add chat for the game ? :D

syne
Автор

Off Topic Question
How would you continually check if a gameobject is colliding with nothing?

zach
Автор

them trolls telling "recieve" is correct

CrossroadDruid
Автор

Could you make a video about how to do the advanced configuration of network manager or other method to minimize the network delay?

ruichenzheng
Автор

Hey Brackeys, doesn't setting the kills and deaths back to 0 after every sync mean that if you wanted to implement a scoreboard you would need to add 2 more kill and death variables that don't get reset? Otherwise the scoreboard would constantly be resetting.

Sentinalh
Автор

Why not use InvokeRepeating instead of a coroutine? Are coroutines more efficient or is it just a habit for you

MIRACLECHEEZ
Автор

I like your video but something is missing, as a multiplayer game you didn't show how to create a loadout menu where the player can find his weapon and customization

leandremichelfrancois
Автор

Why my games is not syncing my deaths and Kills. After i leave the games may stats still 0deats 0 kills... @brackeys

jaysonabat
Автор

Need help from someone please!! I was following along with this series, but then my files got all corrupted or something and nothing would run right, so I went and downloaded the current version from the github, but now I get a warning when I build about not being the creater, how do I fix this so I can actually run it right? :(

NathanChambers
Автор

can you please do a tut about how to make a killfeed and more guns

MarxTM
Автор

I've done so many of your tuts and only just seen your name is not Mr Brackeys....

jld
Автор

i did it with a website server and an assets called GAS :D

bluehowl
Автор

NullReferenceException: Object reference not set to an instance of an object
() (at Assets/Script/Player.cs:132)
(IEnumerator enumerator, IntPtr returnValueAddress) (at can i do for this problem??

creamybutterxx
Автор

The source code has this error (OnDataRecieved) instead of (OnDataReceived) someone should update it.

theonedatgotaway
Автор

if you are firing when you die you respawn firing, ive fixed it but thats a bug. might be a better way to do it but heres mine:

Add this to PlayerShoot script:

public void ResetFiring()
    {
       
        CancelInvoke ("shoot");
    }


Call from PlayerManager script after 'isDead = true;'

PlayerShoot.ResetFiring ();

EpicSqurrel
Автор

Charachter selection Please! Like in TF2 or overwatch?

Aviator
visit shbcf.ru