Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    47
    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