Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

[RELEASED] Car Multiplayer with Photon

Discussion in 'Assets and Asset Store' started by Pleaskado, May 2, 2014.

  1. Pleaskado

    Pleaskado

    Joined:
    May 1, 2014
    Posts:
    8
  2. GameDev_John

    GameDev_John

    Joined:
    May 28, 2012
    Posts:
    19
    link is broken for demo
     
  3. danish115

    danish115

    Joined:
    Aug 28, 2014
    Posts:
    43
    public class GamePlayGUI : Photon.MonoBehaviour
    {
    public string[] Playerjoin = new string[4];
    public int PlayerConnect = 0;
    void OnPhotonPlayerConnected ()
    {
    StartCoroutine (wait());
    }
    void wait()
    {
    yield return new WaitForSeconds (3.0f);
    Playerjoin [PlayerConnect] = Pname;
    PlayerConnect++;
    photonView.RPC("UpdatePlayer", PhotonTargets.All , Playerjoin ,PlayerConnect);
    }
    }
    ....
    Now the problem is that the lines after wait for seconds is not executing. Can you tell me why this is happening?
     
  4. yoash

    yoash

    Joined:
    Sep 3, 2013
    Posts:
    36
    It's too bad the demo link is broken cos I want to buy it but it's too expensive to try blindly. Hopefully you can fix the demo