Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Change turn Tic Tac Toe PUN

$
0
0

Hi all,

I am developing Tic Tac Toe Game and I am having a problem. Whenever I click on the Tile, it changes to oSprite on both Clients, that ok. At the beginning the MasterClient's turn and, the problem is that after I click it, it changes the turn for the client and quickly changes the turn for the MasterCliente. In other words, only turn work in MasterCliente.

Can someone help me?

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;

public class PlayerController : MonoBehaviourPun
{
    public Player photonPlayer;                 // Photon.Realtime.Player class

    public …

Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>