Search Unity

2D Unet problems. I need some guidance

Discussion in 'UNet' started by teh1archon, May 16, 2016.

  1. teh1archon

    teh1archon

    Joined:
    Nov 28, 2014
    Posts:
    12
    Hello everyone,

    I've studied Unet but I still can't get it to work right :(

    I have 3 problems.
    The first: I can't force player 1 to always spawn from a specific spawn point (and same with player 2). Therefore I've tried something else that is problem #2:

    The player's side it's facing is incorrect on client and sometimes on server too, depends on where it spawned.
    I have no idea how to fix it.

    And last one the coroutines to make cooldowns (to add delays between shooting) only works for one player and for the second one it stops working after a few times. Why? How do I use it?

    project and build download: https://www.dropbox.com/s/6h048m9w6u3aqvu/UnetTanksV2.rar?dl=0
    Relevant scripts attached below:
    NewTankController.cs sits on the tank prefab.
    CannonBall and Boom on the rocket and explosion sprites

    Made with v5.3.4 if it matters.
     

    Attached Files: