Hi, i´m working on network game like agar.io, network works fine with using unet but i have problem … if i connect two player i spawns same players - Player(Clone) and i have no idea how can i do collision between them. I need if one of them will be bigger then second he can eats him.
Collision works the same in multiplayer as it does in single-player. Both player clones will have a Collider on them (most likely a capsule). How you set who is bigger is a problem you will have to tackle. Remember that the actual “eating” should be decided by the server with a Command.
Read this for Colliders:
This for a sample of a Command: