Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    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:
    46
    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