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?